Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply
Summary
| CVE | CVE-2026-40558 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-29 23:17:02 UTC |
| Updated | 2026-11-29 23:17:02 UTC |
| Description | Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply. The pasv method uses the IP address from the server's 227 reply for the data connection and never compares it with the control connection's peer. A malicious FTP server can make the client open TCP connections to arbitrary hosts and ports, including internal addresses reachable only from the client. |
Risk And Classification
Problem Types: CWE-918 | CWE-918 CWE-918 Server-Side Request Forgery
There are no known software configurations currently associated with this CVE in NVD or the CVE Program record.
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| metacpan.org/release/SHAY/libnet-3.17/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
Solutions
CNA: Upgrade to libnet 3.17 or later.
Workarounds
CNA: Install libnet 3.17 or later into your @INC include path, so it takes precedence over the vulnerable core module shipped with Perl.
There are currently no legacy QID mappings associated with this CVE.