Security Resilience

CVE-2026-39983

Patrickjuchli Basic-Ftp ≤ 5.2.1

Public PoC
Published
09 April 2026
Modified
26 October 2026
Patch / advisory
CVSS Score v3.1 8.6
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
EPSS Score 0.029 88th percentile
Risk Priority 72 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-39983 is a high-severity CRLF Injection (CWE-93) vulnerability in Patrickjuchli Basic-Ftp. Its CVSS base score is 8.6 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Stealth (T1211); ranked in the top 12% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

basic-ftp is an FTP client library for Node.js that prior to version 5.2.1 permitted FTP command injection through CRLF sequences embedded in file path arguments supplied to APIs including cd, remove, rename, uploadFrom, downloadTo, list, and removeDir. The protectWhitespace helper only stripped leading whitespace and left other inputs untouched, while FtpContext.send wrote the resulting string directly to the control socket and appended its own CRLF terminator, allowing a single call to be split into multiple FTP commands.

An attacker who can influence the path strings passed to these high-level methods can therefore inject arbitrary FTP commands against the remote server without authentication or user interaction, achieving impacts rated at CVSS 8.6 that include confidentiality loss, integrity compromise, and limited availability effects.

The vulnerability is addressed in release 5.2.1; the project published a corresponding security advisory and the fixing commit on GitHub that sanitizes path inputs before command construction.

EPSS rose from a low baseline to a peak of 0.0698 on 2026-04-16 shortly after disclosure before receding to the current value of 0.0204, indicating a transient increase in exploitation interest following public release of the details.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

basic-ftp is an FTP client for Node.js. Prior to 5.2.1, basic-ftp allows FTP command injection via CRLF sequences (\r\n) in file path parameters passed to high-level path APIs such as cd(), remove(), rename(), uploadFrom(), downloadTo(), list(), and removeDir(). The library's…

more

protectWhitespace() helper only handles leading spaces and returns other paths unchanged, while FtpContext.send() writes the resulting command string directly to the control socket with \r\n appended. This lets attacker-controlled path strings split one intended FTP command into multiple commands. This vulnerability is fixed in 5.2.1.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
T1491.001 Internal Defacement Impact
An adversary may deface systems internal to an organization in an attempt to intimidate or mislead users, thus discrediting the integrity of the systems.
T1565.001 Stored Data Manipulation Impact
Adversaries may insert, delete, or manipulate data at rest in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
T1070 Indicator Removal Stealth
Adversaries may selectively delete or modify artifacts generated to reduce indications of their presence and blend in with legitimate activity.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1491 Defacement Impact
Adversaries may modify visual content available internally or externally to an enterprise network, thus affecting the integrity of the original content.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-27699Same product: Patrickjuchli Basic-Ftp
CVE-2026-41324Same product: Patrickjuchli Basic-Ftp
CVE-2026-42037Shared CWE-93
CVE-2026-84372Shared CWE-93
CVE-2026-44092Shared CWE-93
CVE-2026-1527Shared CWE-93
CVE-2025-8715Shared CWE-93
CVE-2026-48019Shared CWE-93
CVE-2026-111222Shared CWE-93
CVE-2026-91839Shared CWE-93

Affected Assets

patrickjuchli
basic-ftp
≤ 5.2.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V4.2.4

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Input validation directly stops untrusted data containing CRLF sequences from reaching the component that treats CRLF as a delimiter.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input neutralization and validation to block CRLF injection.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect CRLF flaws but does not itself implement the neutralization.

prevents

Training developers on input neutralization helps some avoid CRLF injection, but it is a specific implementation defect requiring technical knowledge applied during coding, and developers remain fallible; consistent with A.6.3 vs CWE-598 at partial.

prevents

Secure coding standards explicitly require neutralization of CRLF sequences, fully addressing this weakness.

prevents

A.8.30 carries its effect through the secure-development practices (8.25-8.29) its contract requires of the supplier, so it reduces ordinary input-neutralization defects like CRLF injection the way those practices do; the clause carries a declared ceiling of `partial` on this verb, and CRLF injection is the same class of regular software CWE as the format-string anchor graded `partial`.

finds

A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. CRLF injection does surface as CVEs (multiple observed examples), so the disclosed share is findable, but the bulk of CRLF injection lives in custom first-party code that never gets a published advisory, leaving a nameable majority outside A.8.8's view.

References