Authorization bypass through user-controlled key in Directus - CVE-2026-39942

 

Authorization bypass through user-controlled key in Directus - CVE-2026-39942

Published: April 23, 2026


Vulnerability identifier: #VU127132
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-39942
CWE-ID: CWE-639
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Directus

How to mitigate CVE-2026-39942

Install security update from vendor's website.

Directus - update to 11.17.0

External References

Related Security Bulletins