CVE-2026-44240: CWE-400: Uncontrolled Resource Consumption in patrickjuchli basic-ftp
basic-ftp is an FTP client for Node.js. Prior to 5.3.1, basic-ftp is vulnerable to client-side denial of service when parsing FTP control-channel multiline responses. A malicious or compromised FTP server can send an unterminated multiline response during the initial FTP banner phase, before authentication. The client keeps appending attacker-controlled data into FtpContext._partialResponse and repeatedly reparses the accumulated buffer without enforcing a maximum control response size. As a result, an application using basic-ftp can remain stuck in connect() while memory and CPU usage grow under attacker-controlled input. This can lead to process-level denial of service, container OOM kills, worker restarts, queue backlog, or service degradation in applications that automatically connect to FTP endpoints. This vulnerability is fixed in 5.3.1.
AI Analysis
Technical Summary
CVE-2026-44240 affects the basic-ftp Node.js client before version 5.3.1. The vulnerability arises from the client not enforcing a maximum size on FTP control-channel multiline responses during the initial banner phase. A malicious or compromised FTP server can exploit this by sending an unterminated multiline response, causing the client to append attacker-controlled data indefinitely to an internal buffer and repeatedly reparse it. This uncontrolled resource consumption leads to denial of service conditions such as process-level crashes or service degradation. The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling).
Potential Impact
An attacker controlling or compromising an FTP server can cause applications using vulnerable versions of basic-ftp to consume excessive CPU and memory resources during connection establishment. This can result in denial of service through process crashes, container out-of-memory kills, worker restarts, or backlog in processing queues, impacting availability of services relying on automatic FTP connections.
Mitigation Recommendations
This vulnerability is fixed in basic-ftp version 5.3.1. Users should upgrade to version 5.3.1 or later to remediate this issue. Patch status is not explicitly stated in the vendor advisory, but the description confirms the fix is included in 5.3.1. No additional mitigations are specified.
CVE-2026-44240: CWE-400: Uncontrolled Resource Consumption in patrickjuchli basic-ftp
Description
basic-ftp is an FTP client for Node.js. Prior to 5.3.1, basic-ftp is vulnerable to client-side denial of service when parsing FTP control-channel multiline responses. A malicious or compromised FTP server can send an unterminated multiline response during the initial FTP banner phase, before authentication. The client keeps appending attacker-controlled data into FtpContext._partialResponse and repeatedly reparses the accumulated buffer without enforcing a maximum control response size. As a result, an application using basic-ftp can remain stuck in connect() while memory and CPU usage grow under attacker-controlled input. This can lead to process-level denial of service, container OOM kills, worker restarts, queue backlog, or service degradation in applications that automatically connect to FTP endpoints. This vulnerability is fixed in 5.3.1.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-44240 affects the basic-ftp Node.js client before version 5.3.1. The vulnerability arises from the client not enforcing a maximum size on FTP control-channel multiline responses during the initial banner phase. A malicious or compromised FTP server can exploit this by sending an unterminated multiline response, causing the client to append attacker-controlled data indefinitely to an internal buffer and repeatedly reparse it. This uncontrolled resource consumption leads to denial of service conditions such as process-level crashes or service degradation. The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling).
Potential Impact
An attacker controlling or compromising an FTP server can cause applications using vulnerable versions of basic-ftp to consume excessive CPU and memory resources during connection establishment. This can result in denial of service through process crashes, container out-of-memory kills, worker restarts, or backlog in processing queues, impacting availability of services relying on automatic FTP connections.
Mitigation Recommendations
This vulnerability is fixed in basic-ftp version 5.3.1. Users should upgrade to version 5.3.1 or later to remediate this issue. Patch status is not explicitly stated in the vendor advisory, but the description confirms the fix is included in 5.3.1. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-05T15:42:40.519Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0392cfcbff5d861018bb8f
Added to database: 05/12/2026, 20:51:27 UTC
Last enriched: 05/20/2026, 18:51:25 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 108
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.