{"id":"GHSA-qqmv-5p3g-px89","revision":"a0e5072cfb1e496caeeece4f199971ac","records":[{"revision":"a0e5072cfb1e496caeeece4f199971ac","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-qqmv-5p3g-px89","aliases":["CVE-2026-35412"],"title":"Directus: TUS Upload Authorization Bypass Allows Arbitrary File Overwrite","description":"## 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).","state":0,"publishedAt":"2026-04-04T06:11:18+00:00","modifiedAt":"2026-04-07T14:35:33.556091+00:00","affected":[{"ecosystem":"npm","name":"directus","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"11.16.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/directus/directus/security/advisories/GHSA-qqmv-5p3g-px89","https://nvd.nist.gov/vuln/detail/CVE-2026-35412","https://github.com/directus/directus"],"sourceUrl":"https://github.com/advisories/GHSA-qqmv-5p3g-px89","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qqmv-5p3g-px89","identifiers":["GHSA-qqmv-5p3g-px89","CVE-2026-35412"]},"retained":false,"historicalAffected":[]}],"coverage":[]}