Skip to content
OpenAdvisories
High · 7.5 CVE-2026-44240 EUVD-2026-29840GHSA-rpmf-866q-6p89

basic-ftp allows a malicious FTP server to cause client-side denial of service via unbounded multiline control response buffering

Published May 12, 2026 · Updated May 14, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
patrickjuchli basic-ftp < 5.3.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-proxy-agents 0~2025070717+~cs15.3.8-1 —
Debian 13 node-proxy-agents No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-proxy-agents No fix yet —
Ubuntu 26.04 LTS node-proxy-agents No fix yet —
Ubuntu 25.10 node-proxy-agents No fix yet —
Ubuntu 24.04 LTS node-proxy-agents No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.112.0-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm basic-ftp < 5.3.1 5.3.1 GHSA-rpmf-866q-6p89

References