directus is vulnerable to Path Traversal
71
CVE Score
High
Path Traversal
The TUS resumable upload flow creates the directus_files record through the generic ItemsService instead of FilesService, skipping the filename_disk sanitization and validation applied on the regular upload path. The client-supplied filename_disk from the Upload-Metadata header is passed to the storage driver as the destination path with no normalization or uniqueness check. An authenticated user with create permission on files can steer writes outside the configured storage root prefix and overwrite the stored content of existing file records. The fix sanitizes and validates the storage path and enforces filename uniqueness on the TUS path.
Upgrade the directus library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you have TUS resumable uploads enabled.
10.13.0 - 12.0.2
Fixed in 12.1.0directus is vulnerable to Path Traversal in versions 10.13.0 - 12.0.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.