{"id":"CVE-2026-41324","aliases":["DEBIAN-CVE-2026-41324","GHSA-rp42-5vxx-qpwr","UBUNTU-CVE-2026-41324"],"summary":"basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list()","published_at":"2026-04-16T21:37:48Z","modified_at":"2026-10-27T10:01:18.185544Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0033199999015778303,"percentile":0.2696300148963928,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"basic-ftp is an FTP client for Node.js. Versions prior to 5.3.0 are vulnerable to denial of service through unbounded memory growth while processing directory listings from a remote FTP server. A malicious or compromised server can send an extremely large or never-ending listing response to `Client.list()`, causing the client process to consume memory until it becomes unstable or crashes. Version 5.3.0 fixes the issue.","affected_stack":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"cargo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"clippy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-analysis","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-analyzer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-debugger-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-gdb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-lldb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-src","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static-wasm32-unknown-unknown","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static-wasm32-wasi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static-wasm32-wasip1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-toolset","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rustfmt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"patrickjuchli/basic-ftp","versions":["< 5.3.0"],"provider":"cvelistv5","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Debian:13","package":"node-proxy-agents","purl":"pkg:deb/debian/node-proxy-agents?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2024040606-6","0~2024040606-6+deb13u1","0~2025070717+~cs15.2.7-1","0~2025070717+~cs15.3.7-1","0~2025070717+~cs15.3.8-1","0~2025070717+~cs15.3.8-2","0~2025070717+~cs15.3.8-3","0~2025070717+~cs16.2.9-1","0~2025070717-1","0~2025070717-2","0~2025070717-3","0~2025070717-4","0~2025070717-5","0~2025070717-6"],"provider":"osv","source":"DEBIAN-CVE-2026-41324","relation":"self"},{"ecosystem":"Debian:14","package":"node-proxy-agents","purl":"pkg:deb/debian/node-proxy-agents?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0~2025070717+~cs15.3.7-1"}]}],"versions":["0~2024040606-6","0~2025070717+~cs15.2.7-1","0~2025070717-1","0~2025070717-2","0~2025070717-3","0~2025070717-4","0~2025070717-5","0~2025070717-6"],"fixed":["0~2025070717+~cs15.3.7-1"],"provider":"osv","source":"DEBIAN-CVE-2026-41324","relation":"self"},{"ecosystem":"NVD","package":"patrickjuchli:basic-ftp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.0"}]}],"fixed":["5.3.0"],"provider":"nvd","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"TuxCare:npm","package":"basic-ftp","purl":"pkg:npm/basic-ftp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.5-tuxcare.0"},{"fixed":"5.0.5-tuxcare.1"}]}],"versions":["5.0.5"],"fixed":["5.0.5-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1780879901","relation":"upstream"},{"ecosystem":"Ubuntu:24.04:LTS","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2023071921-5"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2024040606-5","0~2024040606-6","0~2025070717-1","0~2025070717-2"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2025070717-2","0~2025070717-6","0~2025070717+~cs15.2.7-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2025070717+~cs15.2.7-1build1","0~2025070717+~cs15.3.8-1","0~2025070717+~cs15.3.8-2","0~2025070717+~cs15.3.8-3"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"},{"ecosystem":"npm","package":"basic-ftp","purl":"pkg:npm/basic-ftp","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.3.0"}]}],"fixed":["5.3.0"],"provider":"osv","source":"GHSA-rp42-5vxx-qpwr","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["rust"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["cargo","clippy","rust","rust-analysis","rust-analyzer","rust-debugger-common","rust-doc","rust-gdb","rust-lldb","rust-src","rust-std-static","rust-std-static-wasm32-unknown-unknown","rust-std-static-wasm32-wasi","rust-std-static-wasm32-wasip1","rust-toolset","rustfmt"],"package_count":16,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["rust"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-console-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Self-service automation portal 2","cpe":"cpe:/a:redhat:ansible_portal:2","status":"affected","packages":["ansible-automation-platform/automation-portal"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1833","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1833","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-06-08T22:00:00Z","modified_at":"2026-06-15T22:00:00Z","summary":"IBM App Connect Enterprise (basic-ftp, xmldom): Mehrere Schwachstellen","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in IBM App Connect Enterprise ausnutzen, um Dateien zu manipulieren oder einen Denial-of-Service-Zustand zu verursachen.\n\nIBM App Connect Enterprise kombiniert die branchenbewährten Technologien des IBM Integration Bus mit Cloud-nativen Technologien.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2026-1833"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1833.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1833"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7275565"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7275568"},{"type":"WEB","url":"https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0130846"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3046","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3046","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-08-26T22:00:00Z","modified_at":"2026-11-10T23:00:00Z","summary":"IBM Concert: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in IBM Concert ausnutzen, um beliebigen Programmcode auszuführen, um einen Denial of Service Angriff durchzuführen, um Informationen offenzulegen, um Dateien zu manipulieren, um einen Cross-Site Scripting Angriff durchzuführen, um einen SQL-Injection Angriff durchzuführen und um Sicherheitsvorkehrungen zu umgehen.\n\nIBM Concert ist eine Plattform für die Automatisierung von Geschäftsprozessen und Entscheidungsfindung.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2026-3046"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3046.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3046"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7285337"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7292374"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2026-October/030091.html"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7296252"}]},{"provider":"osv","source_id":"CLSA-2026-1780879901","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1780879901","published_at":"2026-08-04T14:52:35Z","modified_at":"2026-10-15T09:47:50.740751Z","summary":"TuxCare security update for basic-ftp (2 CVEs)","details":"TuxCare rebuilt basic-ftp to address 2 CVEs. Fixed in 5.0.5-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"basic-ftp","purl":"pkg:npm/basic-ftp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.5-tuxcare.0"},{"fixed":"5.0.5-tuxcare.1"}]}],"versions":["5.0.5"],"fixed":["5.0.5-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1780879901","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-41324","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-41324","license":"CC-BY-4.0","published_at":"2026-04-24T03:28:48.696Z","modified_at":"2026-04-24T18:50:23.13Z","summary":"basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list()","details":"basic-ftp is an FTP client for Node.js. Versions prior to 5.3.0 are vulnerable to denial of service through unbounded memory growth while processing directory listings from a remote FTP server. A malicious or compromised server can send an extremely large or never-ending listing response to `Client.list()`, causing the client process to consume memory until it becomes unstable or crashes. Version 5.3.0 fixes the issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2026-41324"}],"affected":[{"ecosystem":"CVE","package":"patrickjuchli/basic-ftp","versions":["< 5.3.0"],"provider":"cvelistv5","source":"CVE-2026-41324","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-rp42-5vxx-qpwr"}]},{"provider":"nvd","source_id":"CVE-2026-41324","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41324","severity":[],"affected":[{"ecosystem":"NVD","package":"patrickjuchli:basic-ftp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.0"}]}],"fixed":["5.3.0"],"provider":"nvd","source":"CVE-2026-41324","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-41324","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-41324","published_at":"2026-04-24T04:16:20.767Z","modified_at":"2026-10-27T10:01:18.185544Z","details":"basic-ftp is an FTP client for Node.js. Versions prior to 5.3.0 are vulnerable to denial of service through unbounded memory growth while processing directory listings from a remote FTP server. A malicious or compromised server can send an extremely large or never-ending listing response to `Client.list()`, causing the client process to consume memory until it becomes unstable or crashes. Version 5.3.0 fixes the issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"DEBIAN-CVE-2026-41324"}],"affected":[{"ecosystem":"Debian:13","package":"node-proxy-agents","purl":"pkg:deb/debian/node-proxy-agents?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2024040606-6","0~2024040606-6+deb13u1","0~2025070717+~cs15.2.7-1","0~2025070717+~cs15.3.7-1","0~2025070717+~cs15.3.8-1","0~2025070717+~cs15.3.8-2","0~2025070717+~cs15.3.8-3","0~2025070717+~cs16.2.9-1","0~2025070717-1","0~2025070717-2","0~2025070717-3","0~2025070717-4","0~2025070717-5","0~2025070717-6"],"provider":"osv","source":"DEBIAN-CVE-2026-41324","relation":"self"},{"ecosystem":"Debian:14","package":"node-proxy-agents","purl":"pkg:deb/debian/node-proxy-agents?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0~2025070717+~cs15.3.7-1"}]}],"versions":["0~2024040606-6","0~2025070717+~cs15.2.7-1","0~2025070717-1","0~2025070717-2","0~2025070717-3","0~2025070717-4","0~2025070717-5","0~2025070717-6"],"fixed":["0~2025070717+~cs15.3.7-1"],"provider":"osv","source":"DEBIAN-CVE-2026-41324","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-41324"}]},{"provider":"osv","source_id":"GHSA-rp42-5vxx-qpwr","relation":"self","url":"https://osv.dev/vulnerability/GHSA-rp42-5vxx-qpwr","license":"CC-BY-4.0","published_at":"2026-04-16T21:37:48Z","modified_at":"2026-09-10T03:51:03.112601Z","summary":"basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list()","details":"### Summary\n`basic-ftp@5.2.2` is vulnerable to denial of service through unbounded memory growth while processing directory listings from a remote FTP server. A malicious or compromised server can send an extremely large or never-ending listing response to `Client.list()`, causing the client process to consume memory until it becomes unstable or crashes.\n\n### Details\nThe issue is in the package's default directory listing flow.\n\n`Client.list()` reaches `dist/Client.js`, where the full listing response is downloaded into a `StringWriter` before parsing:\n\nFile: `dist/Client.js:516-527`\n\n```js\nasync _requestListWithCommand(command) {\n    const buffer = new StringWriter_1.StringWriter();\n    await (0, transfer_1.downloadTo)(buffer, {\n        ftp: this.ftp,\n        tracker: this._progressTracker,\n        command,\n        remotePath: \"\",\n        type: \"list\"\n    });\n    const text = buffer.getText(this.ftp.encoding);\n    this.ftp.log(text);\n    return this.parseList(text);\n}\n```\n\nThe vulnerable sink is `StringWriter`, which grows an in-memory `Buffer` with no limit:\n\nFile: `dist/StringWriter.js:5-20`\n\n```js\nclass StringWriter extends stream_1.Writable {\n    constructor() {\n        super(...arguments);\n        this.buf = Buffer.alloc(0);\n    }\n    _write(chunk, _, callback) {\n        if (chunk instanceof Buffer) {\n            this.buf = Buffer.concat([this.buf, chunk]);\n            callback(null);\n        }\n        else {\n            callback(new Error(\"StringWriter expects chunks of type 'Buffer'.\"));\n        }\n    }\n    getText(encoding) {\n        return this.buf.toString(encoding);\n    }\n}\n```\n\nThe critical operation is:\n\n```js\nthis.buf = Buffer.concat([this.buf, chunk]);\n```\n\nThere is no maximum size check, no truncation, and no streaming parser. Because the remote FTP server controls the listing response, it can force the client to keep allocating memory until the process is terminated.\n\nHow it happens:\n\n1. An application connects to an attacker-controlled or compromised FTP server.\n2. The application calls `client.list()`.\n3. The server returns an extremely large or unbounded directory listing.\n4. `basic-ftp` buffers the full response in `StringWriter`.\n5. Memory grows without bound due to repeated `Buffer.concat(...)` calls.\n\n### PoC\nThe following PoC exercises the vulnerable buffering primitive directly:\n\n```js\nconst { StringWriter } = require(\"basic-ftp/dist/StringWriter.js\");\n\nfunction mb(n) {\n  return Math.round(n / 1024 / 1024) + \"MB\";\n}\n\nconst writer = new StringWriter();\nlet wrote = 0;\n\nfor (let i = 0; i < 32; i++) {\n  const chunk = Buffer.alloc(4 * 1024 * 1024, 0x41);\n  writer.write(chunk);\n  wrote += chunk.length;\n\n  if ((i + 1) % 8 === 0) {\n    const m = process.memoryUsage();\n    console.log(\"written\", mb(wrote), \"rss\", mb(m.rss), \"heap\", mb(m.heapUsed), \"buf\", mb(m.arrayBuffers));\n  }\n}\n\nconsole.log(\"final text len\", writer.getText(\"utf8\").length);\n```\n\nObserved output:\n\n```text\nwritten 32MB rss 116MB heap 4MB buf 64MB\nwritten 64MB rss 296MB heap 4MB buf 240MB\nwritten 96MB rss 340MB heap 3MB buf 284MB\nwritten 128MB rss 436MB heap 3MB buf 376MB\nfinal text len 134217728\n```\n\nThis demonstrates sustained memory growth in the same code path used to buffer directory listing data.\n\nSupporting files saved alongside this report:\n\n- `poc.js`\n- `poc_output.txt`\n\n### Impact\nThis is a denial-of-service vulnerability affecting applications that use `basic-ftp` to list directories from remote FTP servers.\n\n- Vulnerability class: Memory exhaustion / Denial of Service\n- Attack precondition: The victim connects to a malicious or compromised FTP server and performs `Client.list()`\n- Impacted users: Any application or service using `basic-ftp@5.2.2` against untrusted FTP endpoints\n- Security effect: The attacker can cause excessive memory consumption, process instability, and potential process termination\n\nRecommended remediation:\n\n1. Enforce a maximum listing size.\n2. Abort transfers that exceed the configured limit.\n3. Prefer incremental or streaming parsing over full-response buffering.\n\nExample defensive check:\n\n```js\nif (this.buf.length + chunk.length > MAX_LISTING_BYTES) {\n    callback(new Error(\"FTP listing exceeds maximum allowed size.\"));\n    return;\n}\nthis.buf = Buffer.concat([this.buf, chunk]);\n```","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GHSA-rp42-5vxx-qpwr"}],"affected":[{"ecosystem":"npm","package":"basic-ftp","purl":"pkg:npm/basic-ftp","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.3.0"}]}],"fixed":["5.3.0"],"provider":"osv","source":"GHSA-rp42-5vxx-qpwr","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-rp42-5vxx-qpwr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41324"},{"type":"PACKAGE","url":"https://github.com/patrickjuchli/basic-ftp"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-41324","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-41324","license":"CC-BY-SA-4.0","published_at":"2026-04-24T04:16:00Z","modified_at":"2026-10-17T12:58:15.016786Z","details":"basic-ftp is an FTP client for Node.js. Versions prior to 5.3.0 are vulnerable to denial of service through unbounded memory growth while processing directory listings from a remote FTP server. A malicious or compromised server can send an extremely large or never-ending listing response to `Client.list()`, causing the client process to consume memory until it becomes unstable or crashes. Version 5.3.0 fixes the issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"UBUNTU-CVE-2026-41324"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-41324"}],"affected":[{"ecosystem":"Ubuntu:24.04:LTS","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2023071921-5"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2024040606-5","0~2024040606-6","0~2025070717-1","0~2025070717-2"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2025070717-2","0~2025070717-6","0~2025070717+~cs15.2.7-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"node-proxy-agents","purl":"pkg:deb/ubuntu/node-proxy-agents?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2025070717+~cs15.2.7-1build1","0~2025070717+~cs15.3.8-1","0~2025070717+~cs15.3.8-2","0~2025070717+~cs15.3.8-3"],"provider":"osv","source":"UBUNTU-CVE-2026-41324","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41324"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-41324"},{"type":"REPORT","url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-rp42-5vxx-qpwr"}]},{"provider":"redhat-vex","source_id":"CVE-2026-41324","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-41324","license":"CC-BY-4.0","published_at":"2026-04-24T03:28:48.696Z","modified_at":"2026-04-27T15:59:19Z","summary":"basic-ftp: basic-ftp: Denial of Service via unbounded memory growth from malicious directory listings","details":"A flaw was found in basic-ftp, an FTP client for Node.js. A malicious or compromised remote FTP server can exploit this vulnerability by sending an extremely large or never-ending directory listing response. This can cause the client process to consume an unbounded amount of memory, leading to instability or a crash, resulting in a Denial of Service (DoS).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2026-41324"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-41324"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"cargo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"clippy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-analysis","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-analyzer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-debugger-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-gdb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-lldb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-src","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static-wasm32-unknown-unknown","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static-wasm32-wasi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-std-static-wasm32-wasip1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rust-toolset","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"rustfmt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-41324","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["rust"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["cargo","clippy","rust","rust-analysis","rust-analyzer","rust-debugger-common","rust-doc","rust-gdb","rust-lldb","rust-src","rust-std-static","rust-std-static-wasm32-unknown-unknown","rust-std-static-wasm32-wasi","rust-std-static-wasm32-wasip1","rust-toolset","rustfmt"],"package_count":16,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["rust"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-console-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"},{"vendor":"Red Hat","product":"Self-service automation portal 2","cpe":"cpe:/a:redhat:ansible_portal:2","status":"affected","packages":["ansible-automation-platform/automation-portal"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-41324"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41324.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-41324"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461380"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-41324"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41324"},{"type":"WEB","url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-rp42-5vxx-qpwr"}]}],"references":[{"type":"WEB","url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-rp42-5vxx-qpwr"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-41324"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41324"},{"type":"PACKAGE","url":"https://github.com/patrickjuchli/basic-ftp"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41324"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-41324"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41324.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-41324"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461380"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1833","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1833","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-06-15T22:00:00Z","relation":"upstream"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3046","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3046","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-11-10T23:00:00Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1780879901","url":"https://osv.dev/vulnerability/CLSA-2026-1780879901","modified_at":"2026-10-15T09:47:50.740751Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-41324","url":"https://www.cve.org/CVERecord?id=CVE-2026-41324","license":"CC-BY-4.0","modified_at":"2026-04-24T18:50:23.13Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-41324","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41324","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-41324","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-41324","modified_at":"2026-10-27T10:01:18.185544Z","relation":"self"},{"provider":"osv","source_id":"GHSA-rp42-5vxx-qpwr","url":"https://osv.dev/vulnerability/GHSA-rp42-5vxx-qpwr","license":"CC-BY-4.0","modified_at":"2026-09-10T03:51:03.112601Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-41324","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-41324","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:58:15.016786Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-41324","url":"https://access.redhat.com/security/cve/CVE-2026-41324","license":"CC-BY-4.0","modified_at":"2026-04-27T15:59:19Z","relation":"self"}]}
