A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-44240

CVE-2026-44240: basic-ftp Node.js DoS Vulnerability

CVE-2026-44240 is a client-side denial of service flaw in basic-ftp for Node.js that allows malicious servers to exhaust memory and CPU. This article covers technical details, affected versions, and mitigations.

Published: May 17, 2026

CVE-2026-44240 Overview

CVE-2026-44240 is a denial of service vulnerability in basic-ftp, an FTP client library for Node.js. Versions prior to 5.3.1 fail to enforce a maximum size on FTP control-channel responses during multiline response parsing. A malicious or compromised FTP server can send an unterminated multiline response during the initial banner phase, before authentication occurs. The client appends attacker-controlled data into FtpContext._partialResponse and repeatedly reparses the growing buffer. This causes unbounded memory and CPU consumption, classified as [CWE-400] Uncontrolled Resource Consumption.

Critical Impact

Applications using vulnerable basic-ftp versions can hang in connect() while memory and CPU usage grow, leading to process-level denial of service, container OOM kills, worker restarts, and queue backlog.

Affected Products

  • basic-ftp Node.js library versions prior to 5.3.1
  • Node.js applications that programmatically connect to attacker-reachable FTP endpoints
  • Containerized workers performing automated FTP transfers

Discovery Timeline

  • 2026-05-12 - CVE-2026-44240 published to NVD
  • 2026-05-14 - Last updated in NVD database

Technical Details for CVE-2026-44240

Vulnerability Analysis

The basic-ftp library parses FTP control-channel responses according to RFC 959, which permits multiline responses framed by a leading code and a hyphen, terminated by the same code followed by a space. The client accumulates incoming bytes into the internal FtpContext._partialResponse buffer and reparses the buffer each time additional data arrives. The parser does not enforce a ceiling on this buffer or on the number of reparse iterations.

A hostile server exploits this by sending a banner that opens a multiline response but never sends the terminating line. Each new chunk extends _partialResponse, and the client reparses the entire accumulated content. The result is quadratic work over a continuously growing buffer, combined with unbounded memory allocation.

Root Cause

The root cause is missing bounds enforcement during stream-based protocol parsing. The library trusts the server to eventually terminate multiline responses and does not cap control-channel response size, total bytes received, or parse-loop iterations during a single response sequence.

Attack Vector

Exploitation requires only that a vulnerable client initiate an FTP connection to a server controlled by the attacker. No authentication is required because the malicious payload is delivered in the pre-authentication banner. Any service that auto-connects to user-supplied or third-party FTP endpoints, such as ingestion pipelines, mirror jobs, or SaaS integrations, exposes the attack surface to the network.

The vulnerability manifests in the multiline response accumulator within FtpContext. See the GitHub Security Advisory for technical details on the patched parser logic.

Detection Methods for CVE-2026-44240

Indicators of Compromise

  • Node.js processes consuming steadily increasing memory while stalled inside Client.connect() against an FTP host
  • Container restarts with OOMKilled status correlated to outbound FTP connections
  • Long-running TCP sessions to port 21 with no successful authentication and continuous inbound bytes

Detection Strategies

  • Inventory dependencies for basic-ftp versions below 5.3.1 using npm ls basic-ftp or software composition analysis tooling
  • Monitor Node.js worker resident set size (RSS) growth during FTP connection establishment phases
  • Alert on FTP control-channel sessions where bytes received before authentication exceed a reasonable banner size threshold, such as 8 KB

Monitoring Recommendations

  • Track CPU saturation and memory growth on workers that initiate outbound FTP traffic
  • Log FTP connection durations and flag sessions stuck in the pre-authentication state beyond a configured timeout
  • Correlate egress connections to port 21 with downstream service degradation signals such as queue depth and worker restart counts

How to Mitigate CVE-2026-44240

Immediate Actions Required

  • Upgrade basic-ftp to version 5.3.1 or later across all Node.js applications and container images
  • Audit application code that calls Client.connect() with user-supplied or third-party hostnames
  • Restrict outbound FTP connectivity from worker fleets to an allowlist of trusted servers

Patch Information

The maintainer fixed this vulnerability in basic-ftp version 5.3.1 by enforcing bounds on control-channel response accumulation. Upgrade using npm install basic-ftp@^5.3.1 and rebuild affected container images. Review the GitHub Security Advisory GHSA-rpmf-866q-6p89 for the full patch description.

Workarounds

  • Wrap Client.connect() calls in a strict timeout and abort connections that do not complete authentication within a small window
  • Constrain process memory using container limits and Node.js --max-old-space-size to bound blast radius
  • Validate FTP target hostnames against an allowlist before initiating connections
bash
# Configuration example: upgrade and pin the fixed version
npm install basic-ftp@^5.3.1
npm ls basic-ftp

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechBasic Ftp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39983: basic-ftp Command Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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