# CVE-2026-39942: Directus has a Path Traversal and Broken Access Control in File Management API

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-04-04T06:06:39.000Z
- Modified: 2026-06-17T10:42:48.210Z
- Also known as: GHSA-393c-p46r-7c95
- Weaknesses: CWE-284, CWE-639, CWE-915
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- directus directus: < 11.17.0
- directus (npm): before 11.17.0
- monospace directus: before 11.17.0

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/directus/directus/security/advisories/GHSA-393c-p46r-7c95> (mitigation, vendor-advisory, web)
- <https://github.com/directus/directus/releases/tag/v11.17.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39942> (advisory)
- <https://github.com/directus/directus> (package)

## Sources

- CVE List: [CVE-2026-39942](https://www.cve.org/CVERecord?id=CVE-2026-39942), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-393c-p46r-7c95](https://github.com/advisories/GHSA-393c-p46r-7c95), CC-BY-4.0, modified 2026-04-09
- NVD: [CVE-2026-39942](https://nvd.nist.gov/vuln/detail/CVE-2026-39942), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-39942 · Whole record: https://cve.day/CVE-2026-39942.json · Rebuilt by cve.day 2026-11-25T22:59:18.384Z
