directus is vulnerable to Path Traversal
71
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range and you have TUS resumable uploads enabled.
directus is vulnerable to Path Traversal in versions 10.13.0 - 12.0.2.
Upgrade the directus library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant