CRLF injection in basic-ftp - CVE-2026-39983

 

CRLF injection in basic-ftp - CVE-2026-39983

Published: April 9, 2026


Vulnerability identifier: #VU125737
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-39983
CWE-ID: CWE-93
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to inject arbitrary FTP commands.

The vulnerability exists due to improper neutralization of CRLF sequences in high-level path APIs in dist/Client.js and FtpContext.send() when processing attacker-controlled file path parameters. A remote attacker can supply a specially crafted path containing CRLF sequences to inject arbitrary FTP commands.

The issue affects methods such as cd(), remove(), rename(), uploadFrom(), downloadTo(), list(), and removeDir().


Affected software

basic-ftp

How to mitigate CVE-2026-39983

Install security update from vendor's website.

basic-ftp - update to 5.2.1

External References

Related Security Bulletins