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
    • 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-2024-21890

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

CVE-2024-21890 is an information disclosure vulnerability in Node.js Permission Model that allows unintended file access through wildcard misuse. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-21890 Overview

The Node.js Permission Model contains a documentation and implementation flaw in how wildcards are processed within file path permissions. The vulnerability arises because the permission model does not properly clarify that wildcards should only be used as the last character of a file path. When wildcards are used mid-path, Node.js ignores subsequent path components, granting broader file system access than intended.

Critical Impact

Attackers can exploit misleading wildcard behavior in the Node.js Permission Model to gain unintended file system access, potentially exposing sensitive files beyond the intended permission scope.

Affected Products

  • Node.js 20.x (with experimental permission model enabled)
  • Node.js 21.x (with experimental permission model enabled)
  • All installations using --allow-fs-read or --allow-fs-write flags with mid-path wildcards

Discovery Timeline

  • 2024-02-20 - CVE-2024-21890 published to NVD
  • 2025-02-12 - Last updated in NVD database

Technical Details for CVE-2024-21890

Vulnerability Analysis

This vulnerability stems from improper input validation in the Node.js experimental permission model's path parsing logic. When administrators configure file system permissions using wildcards (asterisks) within file paths, the permission model fails to properly interpret the intended restriction scope. The core issue is that wildcard characters placed anywhere other than at the end of a path are not processed as expected—instead, everything after the wildcard character is ignored, effectively expanding the permission scope.

For instance, if an administrator intends to restrict access to only .pub files within a user's .ssh directory by specifying --allow-fs-read=/home/node/.ssh/*.pub, the permission model incorrectly grants access to all files under the .ssh/ directory. This behavior contradicts the expected glob-style pattern matching that developers are accustomed to from shell environments.

Root Cause

The root cause is a combination of misleading documentation and permissive path parsing behavior. The permission model's path matching implementation treats wildcards as a truncation point rather than a glob pattern, silently expanding access beyond the administrator's intended scope. This creates a dangerous gap between expected and actual behavior, particularly for security-sensitive configurations.

Attack Vector

This vulnerability is exploitable over the network when Node.js applications are deployed with the experimental permission model enabled. An attacker who can influence the execution context or exploit another vulnerability in the application may be able to access files beyond the intended permission boundaries. The attack does not require authentication and has low complexity to exploit once the misconfigured permission is in place.

The misleading documentation leads administrators to believe they are implementing restrictive file access policies when, in reality, they are granting broader access. For example, an administrator attempting to restrict SSH key access to only public keys inadvertently exposes private keys, authorized_keys files, and other sensitive SSH configuration data.

Detection Methods for CVE-2024-21890

Indicators of Compromise

  • Unexpected file access patterns in Node.js applications using the permission model
  • Log entries showing access to files outside the intended wildcard scope
  • Application behavior accessing sensitive directories like .ssh/, .config/, or credential storage locations
  • Audit logs revealing file reads beyond the expected permission boundaries

Detection Strategies

  • Review all --allow-fs-read and --allow-fs-write flags in Node.js application configurations for mid-path wildcards
  • Implement file access monitoring on sensitive directories when running Node.js with permission model enabled
  • Audit application logs for unexpected file access patterns that exceed intended permission scope
  • Use static analysis tools to identify permission model configurations with potentially unsafe wildcard usage

Monitoring Recommendations

  • Enable detailed file system access logging for Node.js applications using the experimental permission model
  • Monitor access attempts to sensitive directories that should be restricted by permission policies
  • Implement alerting for any file access that falls outside expected application behavior patterns
  • Regularly audit permission model configurations as part of security review processes

How to Mitigate CVE-2024-21890

Immediate Actions Required

  • Audit all Node.js deployments for use of the experimental permission model with wildcard paths
  • Review and reconfigure any --allow-fs-read or --allow-fs-write flags that use wildcards in non-terminal positions
  • Update to the latest Node.js version that addresses this documentation and behavior issue
  • Consider temporarily disabling the permission model if secure configuration cannot be immediately verified

Patch Information

Node.js has addressed this vulnerability by updating documentation and clarifying wildcard behavior. Users should update to the latest patched versions of Node.js 20.x and 21.x. Review the HackerOne Report #2257156 for the original security report, and the NetApp Security Advisory for additional vendor guidance. The Openwall OSS-Security Discussion provides community context on this vulnerability.

Workarounds

  • Only use wildcards at the end of file paths in permission model configurations (e.g., /path/to/directory/*)
  • Specify explicit file paths instead of relying on wildcard patterns for sensitive directories
  • Implement additional application-level access controls as a defense-in-depth measure
  • Consider using containerization or OS-level sandboxing as an alternative or supplement to the Node.js permission model
bash
# Correct wildcard usage - wildcard at end of path only
node --experimental-permission --allow-fs-read=/home/node/.ssh/* app.js

# Alternative: Specify explicit files instead of wildcards
node --experimental-permission --allow-fs-read=/home/node/.ssh/id_rsa.pub --allow-fs-read=/home/node/.ssh/id_ed25519.pub app.js

# Review current permission configuration
node --experimental-permission --allow-fs-read=/app/data/* --allow-fs-write=/app/logs/* 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 Score6.5

  • EPSS Probability1.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • Openwall OSS-Security Discussion

  • HackerOne Report #2257156

  • NetApp Security Advisory NTAP-20240315-0002
  • Related CVEs
  • CVE-2023-32005: Node.js Information Disclosure Vulnerability

  • CVE-2022-35255: Node.js WebCrypto Information Disclosure

  • 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