Em resumo
- CVE-2026-39942 é uma vulnerabilidade ALTO (CVSS 8.8) que afeta directus (monospace), directus.
- Chance de exploração nos próximos 30 dias (EPSS): 0.20%, maior que 10.4% das vulnerabilidades.
- Correção: atualize para 11.17.0 ou posterior.
| Package | Affected versions | Patched versions |
|---|
| directus | < 11.17.0
| 11.17.0
|
| directus npm | < 11.17.0
| 11.17.0
|
Description
Summary
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.
Details
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.
Impact
- 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.
Mitigation
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.
NVD description
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.17.0, 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. This vulnerability is fixed in 11.17.0.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free