CVE-2026-142071: Directus 10.13.0 before 12.1.0 Cross-User File Overwrite via TUS Upload replace_id Metadata
Directus 10.13.0 before 12.1.0 contains an incomplete fix for CVE-2026-35412 where the TUS resumable upload endpoint checks item-level access for the id upload metadata key but not for the adjacent replaceid key, which the upload completion handlers use to rewrite the referenced file through internal services that run without accountability, and does not normalize or uniqueness-check a client-supplied filenamedisk. Authenticated users with create and update permissions on directusfiles can name another user's file id in replaceid to overwrite that file's stored contents and metadata on instances with TUSENABLED set.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.1.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Instances running Directus versions from 10.13.0 before 12.1.0 are affected when TUS_ENABLED is set. The issue applies to deployments where users can create and update records in directus_files.
What access does an attacker need to overwrite another user's file?
The attacker must be authenticated and have create and update permissions on directus_files. They can supply another user's file ID through the TUS upload replace_id metadata field.
What can be changed through a successful exploit?
A successful upload can overwrite the targeted file's stored contents and metadata. The vulnerable completion handlers perform the rewrite through internal services without accountability.
What configuration condition should be checked during triage?
Check whether TUS_ENABLED is enabled and identify accounts or roles with both create and update permissions on directus_files. If either condition is absent, the described exploitation path is not available.