The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2024-36137

CVE-2024-36137: Node.js Privilege Escalation Vulnerability

CVE-2024-36137 is a privilege escalation vulnerability in Node.js that affects the experimental permission model with --allow-fs-write flag. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-36137 Overview

A vulnerability has been identified in Node.js affecting users of the experimental permission model when the --allow-fs-write flag is used. The Node.js Permission Model does not operate on file descriptors, however, operations such as fs.fchown or fs.fchmod can use a "read-only" file descriptor to change the owner and permissions of a file, effectively bypassing the intended security restrictions.

Critical Impact

This vulnerability allows attackers to modify file ownership and permissions using read-only file descriptors, potentially bypassing the experimental permission model's security controls and enabling unauthorized file system modifications.

Affected Products

  • Node.js (versions using experimental permission model)
  • Systems utilizing --allow-fs-write flag
  • Applications relying on Node.js permission model for file system security

Discovery Timeline

  • 2024-09-07 - CVE-2024-36137 published to NVD
  • 2024-11-22 - Last updated in NVD database

Technical Details for CVE-2024-36137

Vulnerability Analysis

This vulnerability represents an Authorization Bypass in Node.js's experimental permission model. The core issue stems from a fundamental design gap where the permission model validates file paths but fails to enforce the same restrictions on file descriptor-based operations.

When a user opens a file with read-only permissions through the permission model, the resulting file descriptor can still be used with certain file system operations that should require write permissions. Specifically, the fs.fchown() and fs.fchmod() functions accept file descriptors and can modify file ownership and permissions without triggering the permission model's validation logic.

This creates a security gap where an attacker with limited read access could escalate their capabilities to modify critical file attributes, potentially leading to privilege escalation scenarios or enabling subsequent attacks against protected files.

Root Cause

The root cause lies in the incomplete implementation of the Node.js experimental permission model. While the model correctly restricts path-based file operations, it does not extend these restrictions to file descriptor-based operations. The fs.fchown() and fs.fchmod() functions operate directly on file descriptors rather than paths, bypassing the permission checks that are path-centric in nature.

Attack Vector

The attack requires local access to the system and involves exploiting the gap between path-based and file descriptor-based permission enforcement. An attacker would:

  1. Obtain a read-only file descriptor through permitted operations
  2. Use the file descriptor with fs.fchown() or fs.fchmod() to modify file metadata
  3. Change ownership or permissions to gain additional access to the file

The vulnerability is exploited locally, requiring the attacker to have some level of access to execute Node.js code with the permission model enabled.

Detection Methods for CVE-2024-36137

Indicators of Compromise

  • Unexpected calls to fs.fchown() or fs.fchmod() functions in Node.js applications using the permission model
  • File ownership or permission changes on files that should be protected by the permission model
  • Anomalous file descriptor usage patterns where read-only descriptors are passed to write-oriented functions
  • Log entries indicating permission model bypass attempts

Detection Strategies

  • Monitor Node.js applications using the experimental permission model for calls to fs.fchown() and fs.fchmod() with file descriptors obtained from read-only operations
  • Implement file integrity monitoring on critical files to detect unauthorized ownership or permission changes
  • Review application code for patterns that open files with limited permissions but subsequently use the file descriptor for metadata modifications
  • Enable verbose logging for permission model operations to identify potential bypass attempts

Monitoring Recommendations

  • Deploy file system auditing to track chown and chmod operations on sensitive files
  • Implement runtime application self-protection (RASP) solutions that can monitor Node.js function calls
  • Establish baseline behavior for file descriptor operations in Node.js applications to detect anomalies
  • Configure alerts for permission or ownership changes on files within protected directories

How to Mitigate CVE-2024-36137

Immediate Actions Required

  • Update Node.js to the latest patched version that addresses this vulnerability
  • Review applications using the experimental permission model to identify potential exposure
  • Implement additional access controls at the operating system level for critical files
  • Consider disabling the experimental permission model until patches are applied if file system security is critical

Patch Information

Node.js has released security patches addressing this vulnerability as part of their July 2024 security releases. Organizations should consult the Node.js July 2024 Vulnerability Blog for specific version information and upgrade instructions. Additionally, NetApp users should review the NetApp Security Advisory NTAP-20241122-0005 for product-specific guidance.

Workarounds

  • Avoid using the experimental permission model for security-critical applications until the vulnerability is patched
  • Implement additional file system permissions at the OS level to restrict chown and chmod operations
  • Use application-level validation to prevent fs.fchown() and fs.fchmod() calls on file descriptors obtained through read operations
  • Consider running Node.js applications in containerized environments with restricted capabilities to limit the impact of permission changes
bash
# Example: Restrict file capabilities at the OS level
# Remove chown capability from Node.js process
setcap -r /usr/bin/node

# Use file system ACLs to protect critical files
setfacl -m u:nodeuser:r-- /path/to/protected/file

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechNode Js

  • SeverityLOW

  • CVSS Score3.3

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Node.js July 2024 Vulnerability Blog

  • NetApp Security Advisory NTAP-20241122-0005
  • Related CVEs
  • CVE-2026-21636: Node.js Privilege Escalation Vulnerability

  • CVE-2025-55132: Node.js Privilege Escalation Vulnerability

  • CVE-2026-21717: Node.js V8 Hash Collision DoS Vulnerability

  • CVE-2025-59464: Node.js OpenSSL Memory Leak DoS Vulnerability
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