7.1high
Directus has a TUS Upload Authorization Bypass Allows Arbitrary File Overwrite
- Severity
- 7.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qqmv-5p3g-px89
Description
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.16.1, Directus' TUS resumable upload endpoint (/files/tus) allows any authenticated user with basic file upload permissions to overwrite arbitrary existing files by UUID. The TUS controller performs only collection-level authorization checks, verifying the user has some permission on directus_files, but never validates item-level access to the specific file being replaced. As a result, row-level permission rules (e.g., "users can only update their own files") are completely bypassed via the TUS path while being correctly enforced on the standard REST upload path. This vulnerability is fixed in 11.16.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| directus directus | < 11.16.1 | CVE List |
| directus (npm) | before 11.16.1 | GitHub Advisory Database |
| monospace directus | before 11.16.1 | NVD |
All scores
| GitHub_M | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L |
| GitHub | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.16.1, Directus' TUS resumable upload endpoint (/files/tus) allows any authenticated user with basic file upload permissions to overwrite arbitrary existing files by UUID. The TUS controller performs only collection-level authorization checks, verifying the user has some permission on directus_files, but never validates item-level access to the specific file being replaced. As a result, row-level permission rules (e.g., "users can only update their own files") are completely bypassed via the TUS path while being correctly enforced on the standard REST upload path. This vulnerability is fixed in 11.16.1.
GitHub Advisory Database
Summary
Directus' TUS resumable upload endpoint (/files/tus) allows any authenticated user with basic file upload permissions to overwrite arbitrary existing files by UUID. The TUS controller performs only collection-level authorization checks, verifying the user has some permission on directus_files, but never validates item-level access to the specific file being replaced. As a result, row-level permission rules (e.g., "users can only update their own files") are completely bypassed via the TUS path while being correctly enforced on the standard REST upload path.
Impact
- Arbitrary file overwrite: Any authenticated user with basic TUS upload permissions can overwrite any file in
directus_filesby UUID, regardless of row-level permission rules. - Permanent data loss: The victim file's original stored bytes are deleted from storage and replaced with attacker-controlled content.
- Metadata corruption: The victim file's database record is updated with the attacker's filename, type, and size metadata.
Privilege escalation potential: If admin-owned files (e.g., application assets, templates) are stored in
directus_files, a low-privilege user could replace them with malicious content.
Workaround
Disable TUS uploads by setting TUS_ENABLED=false if resumable uploads are not required.
Credit
This vulnerability was discovered and reported by bugbunny.ai.
NVD (es)
Directus es una API en tiempo real y un panel de control de aplicaciones para gestionar contenido de bases de datos SQL. Antes de la versión 11.16.1, el endpoint de carga reanudable TUS de Directus (/files/tus) permite a cualquier usuario autenticado con permisos básicos de carga de archivos sobrescribir archivos existentes arbitrarios por UUID. El controlador TUS realiza solo comprobaciones de autorización a nivel de colección, verificando que el usuario tiene algún permiso en directus_files, pero nunca valida el acceso a nivel de ítem al archivo específico que se está reemplazando. Como resultado, las reglas de permiso a nivel de fila (por ejemplo, 'los usuarios solo pueden actualizar sus propios archivos') son completamente eludidas a través de la ruta TUS mientras que se aplican correctamente en la ruta de carga REST estándar. Esta vulnerabilidad está corregida en la versión 11.16.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35412 changed 2026-04-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qqmv-5p3g-px89 changed 2026-04-07 | CC-BY-4.0 |
| NVD | CVE-2026-35412 changed 2026-07-24 | Public domain |