Authorization bypass through user-controlled key in Directus - CVE-2026-39942
Published: April 23, 2026
Directus
Detailed vulnerability description
The vulnerability allows a remote user to overwrite files belonging to other users.
The vulnerability exists due to authorization bypass through a user-controlled key in the PATCH /files/{id} endpoint when handling a user-controlled filename_disk parameter. A remote user can set filename_disk to the storage path of another user's file to overwrite files belonging to other users.
If the storage backend is shared with the extensions location, exploitation can lead to arbitrary code execution when malicious extensions are loaded.