Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-39942

CVE-2026-39942: Directus Privilege Escalation Vulnerability

CVE-2026-39942 is a privilege escalation flaw in Directus that allows attackers to overwrite other users' files by manipulating the filename_disk parameter. This article covers technical details, affected versions, and mitigation.

Published: April 9, 2026

CVE-2026-39942 Overview

CVE-2026-39942 is an Improper Access Control vulnerability in Directus, a real-time API and App dashboard for managing SQL database content. Prior to version 11.17.0, the PATCH /files/{id} endpoint accepts a user-controlled filename_disk parameter. By setting this value to match the storage path of another user's file, an attacker can overwrite that file's content while manipulating metadata fields such as uploaded_by to obscure the tampering.

Critical Impact

Authenticated attackers can overwrite arbitrary files belonging to other users, potentially leading to data tampering, integrity violations, and obscured audit trails through metadata manipulation.

Affected Products

  • Directus versions prior to 11.17.0

Discovery Timeline

  • 2026-04-09 - CVE CVE-2026-39942 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-39942

Vulnerability Analysis

This vulnerability stems from improper access control (CWE-284) in the Directus file management API. The PATCH /files/{id} endpoint fails to properly validate whether the requesting user has authorization to modify the target file's filename_disk parameter. This allows an authenticated user to specify an arbitrary storage path, including paths that correspond to files owned by other users.

The attack exploits the disconnect between the file ID being patched and the actual file storage location. By crafting a malicious request that sets filename_disk to point to another user's file path, an attacker can overwrite the contents of that file. Furthermore, the attacker can manipulate metadata fields like uploaded_by to hide evidence of the tampering, making forensic analysis more difficult.

Root Cause

The root cause is insufficient authorization checks in the file update endpoint. The API allows users to modify the filename_disk field without verifying that the specified storage path belongs to the file record being updated or that the user has appropriate permissions to modify files at that location. This creates a path traversal-like attack where file ownership boundaries can be bypassed through parameter manipulation.

Attack Vector

The attack is network-based and requires low-privilege authentication to the Directus instance. An attacker with a valid user account can send a crafted PATCH request to the /files/{id} endpoint with a filename_disk value matching another user's file storage path. This attack requires no user interaction and can be automated to target multiple files.

The vulnerability allows cross-user file manipulation by exploiting the trust placed in user-supplied filename_disk values. The attacker only needs to know or guess the target file's storage path, which may follow predictable patterns based on the Directus configuration.

Detection Methods for CVE-2026-39942

Indicators of Compromise

  • Unexpected modifications to files in the Directus storage directory with mismatched uploaded_by metadata
  • Audit logs showing PATCH requests to /files/{id} endpoints with filename_disk parameters pointing to paths outside the user's ownership
  • File content changes where the modification timestamp differs from the associated metadata record
  • Multiple files sharing the same filename_disk value in the database

Detection Strategies

  • Monitor API access logs for PATCH requests to /files/{id} endpoints that include filename_disk parameter modifications
  • Implement file integrity monitoring on the Directus storage directory to detect unauthorized modifications
  • Correlate file system changes with database metadata to identify tampering attempts
  • Alert on requests where the filename_disk value in a PATCH request differs from the existing record

Monitoring Recommendations

  • Enable verbose logging on the Directus API server to capture all file modification requests
  • Implement a Web Application Firewall (WAF) rule to flag suspicious filename_disk parameters in API requests
  • Set up periodic integrity checks comparing file hashes against known good baselines
  • Monitor for unusual patterns in file metadata updates, particularly changes to ownership fields

How to Mitigate CVE-2026-39942

Immediate Actions Required

  • Upgrade Directus to version 11.17.0 or later immediately
  • Audit existing files for signs of unauthorized modification by comparing content hashes with backup data
  • Review access logs for suspicious PATCH requests to the /files/{id} endpoint
  • Consider temporarily restricting file modification permissions until the patch is applied

Patch Information

Directus has released version 11.17.0 which addresses this vulnerability. The fix implements proper authorization checks to ensure users cannot modify the filename_disk parameter to reference files they do not own. Administrators should upgrade to this version as soon as possible.

For detailed information about the fix, see the GitHub Release v11.17.0 and the GitHub Security Advisory GHSA-393c-p46r-7c95.

Workarounds

  • Implement API gateway rules to block or log PATCH requests that include the filename_disk parameter
  • Restrict file modification capabilities to trusted administrator accounts until patching is complete
  • Use network segmentation to limit access to the Directus API from untrusted networks
  • Enable additional authentication factors for accounts with file management permissions
bash
# Example: Nginx configuration to block filename_disk parameter in requests
location /files/ {
    if ($request_body ~* "filename_disk") {
        return 403;
    }
    proxy_pass http://directus_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechDirectus

  • SeverityHIGH

  • CVSS Score8.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-284
  • Technical References
  • GitHub Release v11.17.0

  • GitHub Security Advisory GHSA-393c-p46r-7c95
  • Related CVEs
  • CVE-2026-39943: Directus Information Disclosure Flaw

  • CVE-2026-35441: Directus GraphQL DOS Vulnerability

  • CVE-2026-35408: Directus SSO Auth Bypass Vulnerability

  • CVE-2026-35413: Directus GraphQL Introspection Bypass
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English