CVE-2026-126346 — Basic-ftp — CWE-248 · CWE-755
CVE-2026-126346 is a MEDIUM severity Denial-of-Service (DoS) vulnerability (CWE-248, CWE-755) (CVSS 5.9/10) affecting Basic-ftp. Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) with zero user interaction (UI:N), posing a direct security risk to affected deployments.
📄 Official NVD / MITRE Original Record Text
### Summary Client.login() calls FTPContext.send() from inside the control-socket data event handler. send() throws on CR, LF or NUL, and nothing catches the throw. A password containing \r\n therefore raises an uncaught exception and terminates the whole Node.js process. It does not reject the returned promise. Any application that passes untrusted input as the FTP password can be crashed remotely with one request. The same pattern exists in the REST/RETR path of downloadTo() when the remote path contains control characters. ### Details The CRLF guard (FTPContext.send, src/FtpContext.ts ~L233) correctly refuses to send commands containing \r, \n or \0: ```ts send(command: string) { if (/[\r\n\0]/.test(command)) { throw new Error(`Invalid command: Contains control characters. (${command})`); } ``` That works when send() is called from handle(), because it runs inside a Promise executor and the throw becomes a rejection. But in two places send() runs inside a respons
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-126346
CVSS 5.9/10 · MEDIUM · 12.11.2026
CWE: CWE-248, CWE-755
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Summary
Client.login() calls FTPContext.send() from inside the control-socket data event handler. send() throws on CR, LF or NUL, and nothing catches the throw. A password containing \r\n therefore raises an uncaught exception and terminates the whole Node.js process.
Affected: basic-ftp
⚡ ATTACK CHAIN
CVSS vector not available. Review vendor advisory.
🌍 REAL WORLD IMPACT
🛡️ REMEDIATION
→ Apply vendor security update for basic-ftp.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📋 Routine update cycle (30 days)
────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]