Skip to main content

CVE-2026-35412

HIGH
Incorrect Authorization (CWE-863)
2026-04-04 https://github.com/directus/directus GHSA-qqmv-5p3g-px89
8.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege user
  2. Delivery
    Send TUS upload request to /files/tus endpoint
  3. Exploit
    Bypass item-level authorization checks
  4. Execution
    Overwrite arbitrary file by UUID
  5. Impact
    Corrupt 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm directus fix: 11.16.1

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

NVD PRIMARY 8.1 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Jul 24, 2026 - 21:22 NVD
7.1 (HIGH) 8.1 (HIGH)
Patch released
Apr 04, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 04, 2026 - 06:11 nvd
HIGH 7.1

DescriptionNVD

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_files by 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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 npm packages depend on directus (1 direct, 2 indirect)

Ecosystem-wide dependent count for version 11.16.1.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)NVD

pkg:npm/directus

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy