{"id":"CVE-2026-35412","aliases":["CVE-2026-35412","GHSA-qqmv-5p3g-px89"],"related":[],"kind":"vulnerability","state":"published","title":"Directus has a TUS Upload Authorization Bypass Allows Arbitrary File Overwrite","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nDirectus' 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.\n\n## Impact\n\n- **Arbitrary file overwrite:** Any authenticated user with basic TUS upload permissions can overwrite any file in `directus_files` by UUID, regardless of row-level permission rules.\n- **Permanent data loss:** The victim file's original stored bytes are deleted from storage and replaced with attacker-controlled content.\n- **Metadata corruption:** The victim file's database record is updated with the attacker's filename, type, and size metadata.\nPrivilege 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.\n\n## Workaround\n\nDisable TUS uploads by setting `TUS_ENABLED=false` if resumable uploads are not required.\n\n## Credit\n\nThis vulnerability was discovered and reported by [bugbunny.ai](https://bugbunny.ai).","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-04T06:11:18.000Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"< 11.16.1","status":"affected"}],"vendor":"directus","product":"directus","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"11.16.1"}],"ecosystem":"npm","package":"directus","purl":"pkg:npm/directus","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"11.16.1"}],"vendor":"monospace","product":"directus","cpe":"cpe:2.3:a:monospace:directus:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/directus/directus/security/advisories/GHSA-qqmv-5p3g-px89","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35412","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/directus/directus","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-07T16:23:08.777Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35412","url":"https://www.cve.org/CVERecord?id=CVE-2026-35412","licence":"CVE Terms of Use","modified":"2026-04-07T16:23:16.091Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qqmv-5p3g-px89","url":"https://github.com/advisories/GHSA-qqmv-5p3g-px89","licence":"CC-BY-4.0","modified":"2026-04-07T14:35:33.556Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35412","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35412","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:18.072Z","epss":{"score":0.00315,"percentile":0.26318,"date":"2026-12-01T12:00:22.000Z"}}