# CVE-2026-126346: basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-13
- Aliases: GHSA-r4jh-29pc-gfqr, CGA-2x24-r8qm-v8vj, CGA-c5h2-3gf3-w4mx, CGA-ch39-ph2r-79xj, CGA-gx68-32x3-pj82, CGA-qpq2-wfqc-r8pr, CGA-xjf4-qj52-r75h, CGA-4r3v-vchv-2r7q, CGA-c56x-j4q8-573w, CGA-f696-wj56-8jhc, CGA-25h5-p9cx-gmgx, CGA-2v3p-h982-5cx8, CGA-2xqr-cgxq-r4fv, CGA-327q-hqww-wg78, CGA-3fgj-pv79-5pw5, CGA-3hjh-mrjr-396q, CGA-3qg8-frx9-hcr6, CGA-427g-8h9p-f7x4, CGA-46mr-p76h-fcvr, CGA-5qrh-22x9-qv5r, CGA-629f-3wx8-256f, CGA-6f93-p2j9-jj67, CGA-6r9h-vfrj-2j94, CGA-9475-xph9-x9c2, CGA-9c9r-28w2-p3j8, CGA-9fhp-hg78-53rh, CGA-c4h5-6mr5-f48p, CGA-c4rm-p72c-gphv, CGA-c8qj-m3j5-384r, CGA-crc8-m2h7-85gv, CGA-f6mw-82rf-574c, CGA-g82w-q9jr-rpm6, CGA-gpmf-mjw9-22cm, CGA-h4wh-q29c-9vgx, CGA-h53x-rv43-g27q, CGA-h5px-p653-c7w7, CGA-hf63-2p8p-h96r, CGA-hhr2-cjxq-7vcg, CGA-hqmp-9v74-27vc, CGA-hxf7-qc89-44vp, CGA-j3qx-ccjx-v2c2, CGA-jp54-hr9p-3x4g, CGA-m2qf-5x7w-9fjq, CGA-m3vj-m6g3-357m, CGA-m74r-9g7j-v5wq, CGA-mw4p-2h8j-xq3x, CGA-p8gj-rxx6-q8pc, CGA-qh79-f26q-jpv6, CGA-r6v7-pf4j-mv4p, CGA-rvvg-xmj8-v7wx, CGA-vg2v-vqv7-647v, CGA-vw7p-3mw5-3x98, CGA-wj57-8vfj-m679, CGA-xg5c-wp55-7p5w, CGA-xpvx-266w-8f5h, CGA-rjmw-8m9j-m43m, CGA-hw7q-fmq3-96px, CGA-p5rg-mv8q-2xhw, CGA-q83q-5439-frg8, DEBIAN-CVE-2026-126346
- Record: https://cvemate.com/vulnerability/CVE-2026-126346 · JSON: https://cvemate.com/vulnerability/CVE-2026-126346/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.672%, percentile 77.624%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 29)

- chainguard code-server (Chainguard): \< 4.145.2-r1 \| All versions (No fix recorded)
- chainguard gemini-cli (Chainguard): All versions (No fix recorded) \| \< 0.68.0-r1
- chainguard opensearch-dashboards-2-fips-security-dashboards-plugin (Chainguard): All versions (No fix recorded) \| \< 2.19.7-r9
- chainguard opensearch-dashboards-2-security-dashboards-plugin (Chainguard): All versions (No fix recorded) \| \< 2.19.7-r9
- chainguard opensearch-dashboards-3-fips-security-dashboards-plugin (Chainguard): All versions (No fix recorded) \| \< 3.9.0-r10
- chainguard opensearch-dashboards-3-security-dashboards-plugin (Chainguard): All versions (No fix recorded) \| \< 3.9.0-r12
- chainguard wazuh-dashboard-alerting-dashboards-plugin (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-alerting-dashboards-plugin-fips (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-anomaly-detection-dashboards-plugin (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-anomaly-detection-dashboards-plugin-fips (Chainguard): \< 4.14.10-r4
- chainguard wazuh-dashboard-dashboards-maps (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-dashboards-maps-fips (Chainguard): All versions (No fix recorded)
- chainguard wazuh-dashboard-dashboards-notifications (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-dashboards-notifications-fips (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-dashboards-reporting (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-dashboards-reporting-fips (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-dashboards-visualizations (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-dashboards-visualizations-fips (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-index-management-dashboards-plugin (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4
- chainguard wazuh-dashboard-index-management-dashboards-plugin-fips (Chainguard): All versions (No fix recorded) \| \< 4.14.10-r4

## References

- <https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-r4jh-29pc-gfqr>
- <https://github.com/patrickjuchli/basic-ftp/commit/0495b906bdf891e68806721b07b333dba65ec88e>
- <https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.3>
- <https://github.com/patrickjuchli/basic-ftp>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126346.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126346>
- <https://security-tracker.debian.org/tracker/CVE-2026-126346>

---

Data as of 2026-12-05T08:03:43.477Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
