CVE-2026-35412
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege user
-
DeliverySend TUS upload request to /files/tus endpoint
-
ExploitBypass item-level authorization checks
-
ExecutionOverwrite arbitrary file by UUID
-
ImpactCorrupt or replace legitimate file data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access to Directus with basic file upload permissions. Attacker exploits TUS resumable upload endpoint (/files/tus) to bypass row-level access controls, overwriting arbitrary files by UUID. Default Directus installations with any authenticated users are vulnerable. |
| Impact | Real-world risk is moderate-to-high for Directus deployments using TUS uploads with multi-tenant or role-based access models. The CVSS base score of 7.1 (High severity) reflects network accessibility (AV:N), low attack complexity (AC:L), and high integrity impact (I:H) with low availability impact (A:L). The requirement for low-privilege authentication (PR:L) reduces immediate exposure compared to unauthenticated flaws, but any user with basic file upload rights becomes a threat actor. No EPSS data is available to quantify exploitation probability, and the vulnerability is not listed in CISA KEV, indicating no confirmed active exploitation campaigns. However, the presence of a detailed GitHub Security Advisory with clear reproduction steps significantly lowers the barrier for weaponization. The attack is automatable once credentials are obtained, and the technical impact is severe-permanent data loss and potential privilege escalation if system-critical files are targeted. Organizations using Directus in SaaS or multi-user environments with TUS enabled face immediate risk, while single-admin installations see reduced exposure. The availability of a simple configuration workaround (TUS_ENABLED=false) provides immediate mitigation, making this a priority fix for production systems but not an emergency patch requiring out-of-band deployment. |
| Exploit ScenarioDerived | An attacker with low-privilege authenticated access to a multi-tenant Directus instance identifies a high-value file UUID (such as a company logo, PDF template, or configuration file owned by an administrator) by enumerating the directus_files collection through allowed API queries. The attacker initiates a TUS resumable upload session to the /files/tus endpoint, specifying the victim file's UUID as the target. Because the TUS controller only checks collection-level permissions and the attacker has basic file upload rights, the request bypasses row-level ownership validation. The attacker uploads malicious content (e.g., a phishing page disguised as the company logo, or a backdoored PDF template), which permanently overwrites the original file in both storage and database metadata. When legitimate users or administrators retrieve the file, they unknowingly receive attacker-controlled content, enabling phishing attacks, data exfiltration, or further system compromise depending on how the replaced file is used within the application. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 04, 2026
Arbitrary file overwrite in Directus TUS resumable upload endpoint allows authenticated users to replace any existing file by UUID, bypassing row-level access controls. The vulnerability affects the npm package directus, where the /files/tus controller validates only collection-level permissions but skips item-level authorization checks. Attackers with basic file upload permissions can permanently overwrite victim files with malicious content, potentially escalating privileges by replacing admin-owned assets. EPSS data not available, but the moderate complexity (CVSS AC:L, PR:L) and specific bypass mechanism suggest focused targeting risk. No active exploitation confirmed (not in CISA KEV), and no public exploit code identified at time of analysis.
RemediationAI
Immediately disable TUS resumable uploads by setting the environment variable TUS_ENABLED=false in your Directus configuration if chunked upload functionality is not operationally required-this provides instant mitigation with no code changes. For production environments requiring TUS functionality, monitor the official GitHub Security Advisory at https://github.com/directus/directus/security/advisories/GHSA-qqmv-5p3g-px89 for vendor-released patch announcements and upgrade to the patched version as soon as available. The advisory at https://github.com/advisories/GHSA-qqmv-5p3g-px89 should provide specific fixed version details when the patch is released. As a detective control, audit directus_files table modification logs for unexpected file overwrites by cross-referencing file UUIDs with user ownership records. Review and harden row-level permission policies to minimize the blast radius of any bypass vulnerabilities. For high-security environments, consider implementing application-layer monitoring to alert on TUS requests targeting file UUIDs not owned by the requesting user until the patch is deployed.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Directus is a popular open-source headless CMS and data platform built on Node.js. The TUS protocol (Tus Resumable Upload Standard) enables chunked file uploads that can survive network interruptions. This vulnerability (CWE-863: Incorrect Authorization) stems from a broken access control implementation in the TUS upload handler. While Directus enforces granular row-level permissions on the standard REST API (allowing policies like 'users can only modify their own files'), the TUS endpoint at /files/tus performs only collection-level checks against the directus_files table. When an authenticated user initiates a TUS upload with a target file UUID, the controller verifies the user has some permission on the files collection but never validates ownership or item-level access to the specific UUID being replaced. This architectural flaw creates a privilege escalation path where low-privilege users can modify high-privilege resources by exploiting the resumable upload feature.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Summary
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.
Impact
- Arbitrary file overwrite: Any authenticated user with basic TUS upload permissions can overwrite any file in
directus_filesby UUID, regardless of row-level permission rules. - Permanent data loss: The victim file's original stored bytes are deleted from storage and replaced with attacker-controlled content.
- Metadata corruption: The victim file's database record is updated with the attacker's filename, type, and size metadata.
Privilege 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.
Workaround
Disable TUS uploads by setting TUS_ENABLED=false if resumable uploads are not required.
Credit
This vulnerability was discovered and reported by bugbunny.ai.
Blast Radius
ecosystem impact- 3 npm packages depend on directus (1 direct, 2 indirect)
Ecosystem-wide dependent count for version 11.16.1.
Executive ViewAI
Directus file upload functionality contains an authentication bypass that allows authenticated users to overwrite any file in the system by exploiting insufficient authorization checks in the TUS resumable upload endpoint. Users with basic file upload permissions can replace files owned by administrators or other users, potentially compromising system integrity and enabling privilege escalation through asset manipulation. Organizations running affected Directus instances should immediately restrict file upload capabilities and audit recent file modifications.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable TUS resumable upload endpoint if not operationally required; (2) Restrict PR:L (authenticated) file upload permissions to administrative users only, removing access for standard user accounts; (3) Implement network-level access controls limiting /files/tus endpoint to trusted administrators; (4) Enable comprehensive audit logging for all file modification operations and review logs daily for suspicious UUID-based overwrites; (5) Require multi-factor authentication for accounts with file upload privileges.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
GHSA-qqmv-5p3g-px89
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB