Servers and applications
CVE-2026-39942
Broken Access Control in File Management API
- Severity
- High 8.8
- Published
- 2 Apr 2026
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 11.17.0
- Exploit chance
- 0.2% in the next 30 daysHigher than 11% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Improper access control (CWE-284)Authorization bypass through a user-controlled key (IDOR) (CWE-639)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Also known as
- GHSA-393c-p46r-7c95
- Sources
- NVD, Project advisories (GitHub)
Description
A broken access control vulnerability was identified in the Directus file management API that allows authenticated users to overwrite files belonging to other users by manipulating the filename_disk parameter.
The PATCH /files/{id} endpoint accepts a user-controlled filename_disk parameter. By setting this value to match the storage path of another user's file, an attacker can overwrite that file's content while manipulating metadata fields such as uploaded_by to obscure the tampering.
- Unauthorized File Overwrite: Attackers can replace legitimate files with malicious content, creating significant risk of malware propagation and data corruption.
- Remote Code Execution: If the storage backend is shared with the extensions location, attackers can deploy malicious extensions that execute arbitrary code when loaded.
- Data Integrity Compromise: Files can be tampered with or replaced without visible indication in the application interface.
Workarounds
The filename_disk parameter should be treated as a server-controlled value. Uniqueness of storage paths must be enforced server-side, and filename_disk should be excluded from the fields users are permitted to update directly.
Affected software
| Software | Affected versions |
|---|---|
DirectusServers and applications · cpe:a:monospace:directus |
|
DirectusServers and applications · github:directus/directus |
|
About Directus
The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.
- Weekly downloads (npm)
- 30,924npm, 15 Nov 2026
- Docker Hub pulls
- 50,954,770Docker Hub, 15 Nov 2026
- GitHub stars
- 38,722GitHub, 15 Nov 2026
- Forks
- 5,000GitHub, 15 Nov 2026
- Latest release
- v12.6.1GitHub, 15 Nov 2026
- Released
- 4 Nov 2026GitHub
- First published on GitHub
- 12 Dec 2012GitHub
Source code Website Docker image Package
Vulnerabilities in Directus
- In our list
- 85
- Published in the last 12 months
- 40
- Critical, last 12 months
- 3
- High, last 12 months
- 16
- Known exploited
- 0
- CVE-2026-126539Directus before 12.1.0 Authorization Bypass via Public WebSocket REST InterfaceCritical 9.2 11 Nov 2026
- GHSA-jvxj-w2qp-5vmxIP-restricted policies bypassed via GraphQL WebSocket subscriptionsMedium 6.8 30 Oct 2026
- GHSA-95f8-mvw7-gpj9File uploads can write into the extensions directory, leading to code execution in overlapping storage configurationsMedium 6.6 30 Oct 2026
- GHSA-32cw-mf7w-gpqrAuthenticated persistent Denial of Service via prototype pollution in CSV importHigh 7.1 30 Oct 2026
- GHSA-xf86-hfpm-92xrAI Chat route exposes admin-only tools to non-admin usersLow 3.1 19 Oct 2026
- GHSA-2xcm-7h22-3m66Update and delete by query evaluate filters without read permissions, leaking hidden field valuesMedium 6.5 19 Oct 2026
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-39942
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-39942
- GitHub Advisory Database https://github.com/advisories/GHSA-393c-p46r-7c95
- github.com https://github.com/directus/directus/security/advisories/GHSA-393c-p46r-7c95