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-2023-32005

CVE-2023-32005: Node.js Information Disclosure Vulnerability

CVE-2023-32005 is an information disclosure flaw in Node.js 20's experimental permission model that allows unauthorized file stats access. This article covers technical details, affected versions, impact, and mitigation.

Published: January 28, 2026

CVE-2023-32005 Overview

A vulnerability has been identified in Node.js version 20, affecting users of the experimental permission model when the --allow-fs-read flag is used with a non-* argument. This flaw arises from an inadequate permission model that fails to restrict file stats through the fs.statfs API. As a result, malicious actors can retrieve stats from files that they do not have explicit read access to.

This vulnerability affects all users using the experimental permission model in Node.js 20. It is important to note that at the time this CVE was issued, the permission model was an experimental feature of Node.js.

Critical Impact

Attackers can bypass the experimental permission model to access file system statistics from files they should not have access to, potentially revealing sensitive information about the file system structure and storage allocation.

Affected Products

  • Node.js version 20.x (experimental permission model)
  • Systems using the --allow-fs-read flag with specific path arguments
  • Applications relying on the experimental permission model for file system access control

Discovery Timeline

  • 2023-09-12 - CVE CVE-2023-32005 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2023-32005

Vulnerability Analysis

This vulnerability is classified under CWE-732 (Incorrect Permission Assignment for Critical Resource). The core issue lies in how Node.js's experimental permission model handles the fs.statfs API. When users configure the permission model with the --allow-fs-read flag to restrict file system access to specific paths, the fs.statfs function does not properly respect these restrictions.

The permission model was designed to provide a security boundary that limits which files and directories a Node.js application can access. However, the fs.statfs API was not integrated with this permission checking mechanism, creating a gap in the security model that allows information disclosure.

Root Cause

The root cause of this vulnerability stems from an incomplete implementation of the permission model in Node.js 20. When the experimental permission model was developed, the fs.statfs API was not included in the permission checks that govern file system operations. This oversight allows the API to return file system statistics regardless of the restrictions specified through the --allow-fs-read flag.

The fs.statfs function returns information about the mounted file system containing a specified path, including details such as block size, total blocks, free blocks, and other file system metadata. Without proper permission enforcement, this information can be extracted for any file path, even those outside the permitted scope.

Attack Vector

The attack vector for this vulnerability is network-based and requires no authentication or user interaction. An attacker who can execute JavaScript code within a Node.js application that uses the experimental permission model can exploit this vulnerability by calling fs.statfs with arbitrary file paths.

The exploitation is straightforward—an attacker simply calls the fs.statfs function with a path that should be restricted according to the permission model configuration. Because the permission check is absent for this specific API, the function returns the file system statistics without validating whether the caller has read access to the specified path.

For detailed technical information about this vulnerability, refer to the HackerOne Report #2051224.

Detection Methods for CVE-2023-32005

Indicators of Compromise

  • Unexpected calls to fs.statfs or fs.statfsSync APIs targeting paths outside the configured --allow-fs-read scope
  • Application logs showing file system statistics queries for sensitive directories such as /etc, /root, or other restricted paths
  • Anomalous patterns of file system metadata collection that do not align with legitimate application behavior

Detection Strategies

  • Implement application-level logging to track all fs.statfs and fs.statfsSync API calls and their target paths
  • Deploy runtime application self-protection (RASP) solutions to monitor Node.js API calls and flag suspicious file system operations
  • Use SentinelOne's behavioral detection to identify patterns consistent with information gathering through file system statistics

Monitoring Recommendations

  • Monitor Node.js applications for calls to fs.statfs with paths outside the expected application scope
  • Establish baseline behavior for legitimate file system operations and alert on deviations
  • Review and audit applications using the experimental permission model to ensure they are not exposed to untrusted input

How to Mitigate CVE-2023-32005

Immediate Actions Required

  • Upgrade Node.js to the latest patched version that addresses this permission model bypass
  • If upgrading is not immediately possible, avoid relying on the experimental permission model as a security boundary
  • Implement additional application-level checks before calling fs.statfs to validate the requested path against permitted locations
  • Consider using containerization or operating system-level sandboxing as an additional layer of file system access control

Patch Information

Node.js has addressed this vulnerability in subsequent releases. Users should upgrade to the latest stable version of Node.js 20.x or newer that includes the fix for this permission model bypass. Refer to the NetApp Security Advisory NTAP-20231103-0004 for additional vendor-specific guidance.

Workarounds

  • Do not rely solely on the experimental permission model for security-critical applications until the feature is considered stable
  • Implement wrapper functions around fs.statfs that enforce your own path validation before calling the underlying API
  • Use operating system-level permissions (file ownership, SELinux, AppArmor) as the primary access control mechanism
  • Consider running Node.js applications in isolated containers with restricted file system access
bash
# Example: Running Node.js with restricted file system access using a container
# This provides OS-level isolation independent of Node.js permission model

# Create a container with limited file system visibility
docker run --read-only \
  --tmpfs /tmp:rw,noexec,nosuid \
  -v /app/data:/app/data:ro \
  node:20 node --experimental-permission \
  --allow-fs-read=/app/data your-app.js

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechNodejs

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.98%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-732
  • Technical References
  • HackerOne Report #2051224

  • NetApp Security Advisory NTAP-20231103-0004
  • Related CVEs
  • CVE-2022-35255: Node.js WebCrypto Information Disclosure

  • CVE-2024-21890: Node.js Information Disclosure Flaw

  • CVE-2023-45143: Node.js Undici Information Disclosure Flaw

  • CVE-2022-32222: Node.js Information Disclosure Vulnerability
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