CVE-2026-39983
published high CVSS 3.1 · 8.6FTP Command Injection via CRLF in basic-ftp
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| patrickjuchli | — | basic-ftp< 5.2.1 | Affected | Not stated | GitHub_M |
| Red Hat | — | rhdh/rhdh-hub-rhel9Red Hat Developer Hub 1.8 · 1776784286 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhdh/rhdh-hub-rhel9Red Hat Developer Hub 1.9 · 1777903262 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | redhat-user-workloads/art-imagesRed Hat OpenShift Container Platform 4 | Affected | Not stated | redhat-SADP |
| Red Hat | — | redhat-user-workloads/ansible-pluginsSelf-service automation portal 2 | Affected | Not stated | redhat-SADP |
Description
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 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.
A flaw was found in basic-ftp, an FTP client for Node.js. A remote attacker can exploit this vulnerability by injecting Carriage Return Line Feed (CRLF) sequences into file path parameters used by high-level APIs. This allows the attacker to split a single intended FTP command into multiple commands. Such command injection can lead to the execution of arbitrary commands, potentially compromising the integrity and availability of data or the system.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.6 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| patrickjuchli | basic-ftp | < 5.2.1 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Developer Hub 1.8 | 1776784286 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Developer Hub 1.9 | 1777903262 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: affected | redhat-SADP · adp |
| Red Hat | Self-service automation portal 2 | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-93 CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
- CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')
References
8- https://access.redhat.com/errata/RHSA-2026:13826
- https://access.redhat.com/errata/RHSA-2026:9742
- https://access.redhat.com/security/cve/CVE-2026-39983
- RHBZ#2456971 https://bugzilla.redhat.com/show_bug.cgi?id=2456971
- https://github.com/patrickjuchli/basic-ftp/commit/2ecc8e2c500c5234115f06fd1dbde1aa03d70f4b
- https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.1
- https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-chqc-8p9q-pq6q
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39983.json
Provider assertions
3GitHub_M · cna
FTP Command Injection via CRLF in basic-ftp
redhat-SADP · adp
basic-ftp: basic-ftp: Command injection via CRLF sequences in file path parameters
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2ed1a8e62ceb7ae46c6de430d1d43f38c8e23236b871203d4a92fc28c0f7a368
- Ingested
- 23 Sep 2026, 09:12:25 UTC
- Source record
- Official CVE record