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-2025-23165

CVE-2025-23165: Node.js Memory Leak DoS Vulnerability

CVE-2025-23165 is a memory leak denial of service flaw in Node.js affecting the ReadFileUtf8 internal binding. Repeated calls cause unbounded memory growth. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-23165 Overview

CVE-2025-23165 is a memory leak vulnerability in Node.js affecting the ReadFileUtf8 internal binding. The flaw occurs due to a corrupted pointer in uv_fs_s.file where a UTF-16 path buffer is allocated but subsequently overwritten when the file descriptor is set. This results in an unrecoverable memory leak on every call, and repeated use can cause unbounded memory growth, ultimately leading to a denial of service condition.

Critical Impact

Applications using Node.js APIs that rely on ReadFileUtf8 may experience memory exhaustion and denial of service through accumulated memory leaks.

Affected Products

  • Node.js v20.x release line
  • Node.js v22.x release line
  • Applications using APIs relying on ReadFileUtf8 binding

Discovery Timeline

  • 2025-05-19 - CVE CVE-2025-23165 published to NVD
  • 2025-05-19 - Last updated in NVD database

Technical Details for CVE-2025-23165

Vulnerability Analysis

This vulnerability is classified under CWE-401 (Missing Release of Memory after Effective Lifetime). The core issue resides in the internal ReadFileUtf8 binding within Node.js, which is responsible for reading file contents with UTF-8 encoding. During the file reading operation, the binding allocates a UTF-16 path buffer to handle file path conversions. However, a programming error causes the pointer to this allocated buffer to be corrupted when the file descriptor is subsequently set in the uv_fs_s.file structure.

The memory allocated for the UTF-16 path buffer becomes unreachable after the pointer corruption, meaning it cannot be properly freed by the garbage collector or manual memory management routines. This results in a memory leak that occurs on every invocation of functions relying on the ReadFileUtf8 binding.

Root Cause

The root cause is improper memory management in the ReadFileUtf8 internal binding. Specifically, the vulnerability stems from a sequence of operations where:

  1. A UTF-16 path buffer is dynamically allocated to handle file path encoding
  2. The pointer to this allocated memory is stored in a structure field
  3. The file descriptor is subsequently written to the same or an adjacent field, corrupting the pointer
  4. The original memory reference is lost, preventing deallocation

This represents a classic memory leak pattern where allocated memory becomes orphaned due to pointer corruption, falling under the CWE-401 classification.

Attack Vector

The attack vector is network-based, though exploitation requires specific conditions. An attacker could trigger this vulnerability by causing an application to repeatedly invoke file reading operations that utilize the ReadFileUtf8 binding. In server environments where Node.js handles file operations based on user requests, an attacker could:

  1. Send numerous requests that trigger file reading operations
  2. Each request causes a small memory leak
  3. Over time, accumulated leaks exhaust available memory
  4. The application becomes unresponsive or crashes due to memory exhaustion

The attack does not require authentication or user interaction but does require the ability to trigger file reading operations in the target application. The practical exploitability depends on how the target application uses file reading APIs.

Detection Methods for CVE-2025-23165

Indicators of Compromise

  • Gradual increase in Node.js process memory consumption over time without corresponding workload increase
  • Out-of-memory errors or crashes in Node.js applications under normal operating conditions
  • Abnormally high memory usage reported by monitoring tools for Node.js processes
  • System-level memory pressure or swap usage increases correlated with Node.js activity

Detection Strategies

  • Monitor Node.js process memory usage patterns using process monitoring tools like pm2 or system metrics
  • Implement memory profiling in Node.js applications using the --inspect flag and Chrome DevTools
  • Set up alerts for memory threshold breaches in application performance monitoring (APM) solutions
  • Review application logs for memory-related warnings or out-of-memory exceptions

Monitoring Recommendations

  • Configure container memory limits and monitoring to detect gradual memory increases
  • Deploy SentinelOne Singularity to monitor for anomalous process behavior and resource consumption patterns
  • Implement periodic application restarts as a temporary measure while awaiting patching
  • Establish baseline memory consumption metrics for Node.js applications to identify deviations

How to Mitigate CVE-2025-23165

Immediate Actions Required

  • Upgrade Node.js to the latest patched version as indicated in the Node.js security releases
  • Review application code to identify usage of APIs that may rely on ReadFileUtf8 binding
  • Implement application-level memory monitoring to detect and respond to memory leaks
  • Consider implementing request rate limiting for endpoints that trigger file reading operations

Patch Information

Node.js has released security updates addressing this vulnerability. Organizations should refer to the Node.js Security Release Blog for detailed patch information and upgrade instructions. The security release covers both the v20 and v22 release lines affected by this vulnerability.

Users should upgrade to the latest available versions in their respective release lines:

  • For Node.js v20.x: Upgrade to the latest v20 security release
  • For Node.js v22.x: Upgrade to the latest v22 security release

Workarounds

  • Implement periodic application restarts to reclaim leaked memory before exhaustion occurs
  • Deploy memory monitoring with automatic restart triggers when thresholds are exceeded
  • Rate limit or throttle file reading operations to slow the rate of memory accumulation
  • Consider alternative file reading approaches that may not rely on the affected ReadFileUtf8 binding
bash
# Example: Configure PM2 to restart Node.js app when memory exceeds threshold
pm2 start app.js --max-memory-restart 1G

# Example: Monitor Node.js memory usage
node --expose-gc --max-old-space-size=2048 app.js

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechNode Js

  • SeverityLOW

  • CVSS Score3.7

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-401
  • Technical References
  • Node.js Security Release Blog
  • Related CVEs
  • CVE-2025-59464: Node.js OpenSSL Memory Leak DoS Vulnerability

  • CVE-2024-22025: Node.js fetch() DoS Vulnerability

  • CVE-2025-53620: Qwik City DoS Vulnerability

  • CVE-2025-23166: Node.js Runtime Denial of Service Flaw
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