Patrickjuchli basic-ftp
Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
The `basic-ftp` FTP client library for Node.js contains a path traversal vulnerability (CWE-22) in versions prior to 5.2.0 in the `downloadToDir()` method. A malicious FTP server can send directory listings with filenames containing path traversal sequences (`../`) that cause files to be written outside the intended download directory. Version 5.2.0 patches the issue.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by NVD · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
patrickjuchli basic-ftp
- < 5.2.0
Fixed in 5.2.0
Mitigation
Upgrade basic-ftp to 5.2.0 or later.
References
- Vendor advisory github.com/patrickjuchli/basic-ftp/security/ad…
- Patch github.com/patrickjuchli/basic-ftp/commit/2a2a…
- Release notes github.com/patrickjuchli/basic-ftp/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.