Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit password/path containing CR/LF
-
DeliveryServer returns routine 331 or 350
-
ExploitResponse handler calls FTPContext.send()
-
Executionsend() throws inside socket data event
-
ImpactUncaught exception terminates Node.js process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
|
| Exploitation Conditions | Exploitation requires the embedding application to pass attacker-influenced input into one of two sinks: the FTP password via Client.login()/access(), or the remote path of a resumed download via downloadTo() with startAt > 0 (which issues REST then RETR). The attacker-controlled string must contain a carriage return, line feed, or NUL byte, and the FTP server must send its ordinary 331 (to USER) or 350 (to REST) response - no special or malicious server behaviour and no authentication to the FTP server are needed. Limiting factors: only deployments that route untrusted strings into those exact parameters are affected (apps with hardcoded credentials/paths are not), and an application that installs a global process.on('uncaughtException') handler survives the crash. The flaw is triggered reliably and deterministically once these conditions hold. |
| Impact | Signals are mixed and point to a real-but-bounded availability issue rather than a top-tier emergency. The input CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, 5.9 Medium) scores only availability impact - no confidentiality or integrity loss - which matches CWE-248/CWE-755: an uncaught exception that terminates the whole Node.js process. KEV status is NO (no confirmed active exploitation), and no EPSS score was supplied, so exploitation probability cannot be quantified from this data - state that gap explicitly. Against those, a fully functional, author-tested proof-of-concept is published inside the GHSA advisory (tested on Node.js v22.22.0 against basic-ftp 6.2.2), so trigger reliability is high once the precondition is met. I disagree with the input's AC:H: the advisory shows the crash is deterministic - any normal FTP server that answers 331 to USER (or 350 to REST) triggers it, with no race, timing or attacker-uncontrolled element described - so the real gating factor is a deployment precondition (the application must route attacker-influenced strings into the FTP password or into the remote path of a resumed download), not attack complexity. The vuln.today Decision label is this_month, consistent with a widely-used library DoS that is not under active exploitation. Net: prioritize patching for any service that lets untrusted input reach those parameters, but this is not an RCE or data-exposure event and the Command Injection tag is wrong - the CRLF guard still blocks injection. |
| Exploit ScenarioDerived | A web app or backup/file-transfer service lets users supply their own FTP credentials or remote paths and passes them to basic-ftp. An attacker submits a password (or resumed-download path) such as "x\r\nDELE important"; after the FTP server returns its routine 331 (or 350) response, the client's response handler calls send(), which throws on the control characters inside the socket data event where nothing can catch it. A working PoC in the GHSA advisory confirms the uncaught exception crashes the entire Node.js process and every other client it serves, and neither try/catch nor .catch() around access()/downloadTo() prevents it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
An uncaught exception in the basic-ftp Node.js FTP client (all versions prior to 6.2.3) lets an attacker-influenced string crash the entire Node.js process: FTPContext.send() throws when a command contains CR, LF or NUL, and two call sites invoke send() from inside the control socket's synchronous data event handler where no try/catch exists, so the throw becomes an uncaughtException instead of a promise rejection. The affected sinks are the password passed to Client.login()/access() (checked only after the server's 331 reply to USER) and the remote path of a resumed download via downloadTo() with startAt > 0 (sent as RETR after the 350 reply to REST). Impact is availability-only and bounded: only applications that route untrusted input into those exact parameters are exposed, the CRLF guard still blocks command injection, and a global process.on('uncaughtException') handler keeps the process alive; the advisory publishes a tested proof-of-concept using a minimal mock FTP server, and there is no KEV entry or other indication of active exploitation.
RemediationAI
Vendor-released patch: upgrade to basic-ftp 6.2.3 (e.g. npm install basic-ftp@6.2.3, or pin the dependency) - the release adds a try/catch around the response handler invocation in FTPContext._passToHandler that rejects the pending task and calls closeWithError(), wraps the send() call inside the handler chain, and validates input early; it also stops the rejection message from including the password. Confirm the upgrade by verifying the resolved version is 6.2.3 or later (affected range <= 6.2.2) per https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.3 and GHSA-r4jh-29pc-gfqr. If upgrading immediately is not possible, the actionable compensating controls are: (1) validate and reject any password or resumed-download remote path containing \r, \n or \0 before it reaches the library - cheap and complete for these two sinks, but it pushes the burden onto every call site and will not cover paths added by future callers; (2) install a global process.on('uncaughtException') handler - this keeps the Node.js process (and every other client it serves) alive, at the cost of continuing with an FTP session whose state is unknown, so the affected client/socket must be discarded and ideally the work item retried; (3) run FTP operations in a separate worker/child process with a restart supervisor so a crash does not take down the whole service, at the cost of added process overhead. Note the trigger requires the FTP server's ordinary 331 or 350 response, so no server-side filtering mitigates it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
basic-ftp drives an FTP control socket: bytes arriving on socket.on('data') are passed through _onControlSocketData to _passToHandler, which synchronously invokes the pending task's responseHandler. Commands reach the wire through FTPContext.send(), which enforces a guard (CWE-185-adjacent input validation) rejecting any command containing \r, \n or \0 - this guard is why the flaw is not command injection. Normally a throw inside send() lands inside a Promise executor and becomes a rejection, but in Client.login() the second half of the exchange (PASS <password>) is emitted from the response handler for the 331 reply to USER, and in downloadTo() the RETR <remotePath> command is emitted from the handler for the 350 reply to REST when resuming (startAt > 0). Both run on the socket data event stack, outside any exception boundary, so the throw propagates as an uncaughtException (CWE-248), also characterized as improper check/handling of exceptional conditions (CWE-755). Because the fault occurs during event dispatch, try/catch or .catch() around client.access()/downloadTo() cannot intercept it; the session state is left indeterminate. Node.js and the npm packaging chain are the platform; the affected artifact is the npm package basic-ftp (CPE cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:*:*:*). The same commit additionally stops the rejection message from echoing the password (a credential-exposure side issue) and keeps the client usable after a guard rejection.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Crash is deterministic once an app routes attacker-controlled input to PASS/RETR and the server sends its normal 331/350, so AC:L and PR:N; only availability is impacted via process termination.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
basic-ftp is an FTP client for Node.js. Prior to 6.2.3, FTPContext.send() throws when a command contains carriage return, line feed, or NUL characters, but calls made from response handlers execute synchronously inside the control socket's data event without an exception boundary. In Client.login(), an attacker-influenced password reaches the PASS command after a server sends a 331 response, and in a resumed download an attacker-influenced remote path reaches the RETR command after a 350 response to REST. The resulting exception does not reject client.access() or downloadTo(), escapes ordinary promise error handling, and terminates the Node.js process, while the validation guard still prevents command injection. This issue is fixed in version 6.2.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-124724
GHSA-r4jh-29pc-gfqr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB