{"api_version":"1","generated_at":"2026-11-30T01:20:03+00:00","cve":"CVE-2026-40558","urls":{"html":"https://cve.report/CVE-2026-40558","api":"https://cve.report/api/cve/CVE-2026-40558.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40558","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40558"},"summary":{"title":"Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply","description":"Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply.\n\nThe 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.\n\nA malicious FTP server can make the client open TCP connections to arbitrary hosts and ports, including internal addresses reachable only from the client.","state":"PUBLISHED","assigner":"CPANSec","published_at":"2026-11-29 23:17:02","updated_at":"2026-11-29 23:17:02"},"problem_types":["CWE-918","CWE-918 CWE-918 Server-Side Request Forgery"],"metrics":[],"references":[{"url":"https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12.patch","name":"https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12.patch","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://metacpan.org/release/SHAY/libnet-3.17/changes","name":"https://metacpan.org/release/SHAY/libnet-3.17/changes","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40558","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40558","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"Upgrade to libnet 3.17 or later.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","value":"Install libnet 3.17 or later into your @INC include path, so it takes precedence over the vulnerable core module shipped with Perl.","time":"","lang":"en"}],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","modules":["Net::FTP"],"packageName":"libnet","packageURL":"pkg:cpan/libnet","programFiles":["lib/Net/FTP.pm"],"programRoutines":[{"name":"Net::FTP::pasv"}],"repo":"https://github.com/steve-m-hay/perl-libnet","versions":[{"lessThan":"3.17","status":"affected","version":"0","versionType":"custom"}]},{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","modules":["Net::FTP"],"packageName":"perl","packageURL":"pkg:cpan/perl","programFiles":["cpan/libnet/lib/Net/FTP.pm"],"programRoutines":[{"name":"Net::FTP::pasv"}],"repo":"https://github.com/Perl/perl5","versions":[{"lessThanOrEqual":"5.45.5","status":"affected","version":"5.7.3","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply.\n\nThe 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.\n\nA malicious FTP server can make the client open TCP connections to arbitrary hosts and ports, including internal addresses reachable only from the client."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","description":"CWE-918 Server-Side Request Forgery","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-29T22:40:29.485Z","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec"},"references":[{"tags":["patch"],"url":"https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12.patch"},{"tags":["release-notes"],"url":"https://metacpan.org/release/SHAY/libnet-3.17/changes"}],"solutions":[{"lang":"en","value":"Upgrade to libnet 3.17 or later."}],"source":{"discovery":"UNKNOWN"},"title":"Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply","workarounds":[{"lang":"en","value":"Install libnet 3.17 or later into your @INC include path, so it takes precedence over the vulnerable core module shipped with Perl."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}}},"cveMetadata":{"assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","assignerShortName":"CPANSec","cveId":"CVE-2026-40558","datePublished":"2026-11-29T22:40:29.485Z","dateReserved":"2026-04-14T11:31:04.291Z","dateUpdated":"2026-11-29T22:40:29.485Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-29 23:17:02","lastModifiedDate":"2026-11-29 23:17:02","problem_types":["CWE-918","CWE-918 CWE-918 Server-Side Request Forgery"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"40558","Ordinal":"1","Title":"Net::FTP versions before 3.17 for Perl connect the passive data ","CVE":"CVE-2026-40558","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"40558","Ordinal":"1","NoteData":"Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply.\n\nThe 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.\n\nA malicious FTP server can make the client open TCP connections to arbitrary hosts and ports, including internal addresses reachable only from the client.","Type":"Description","Title":"Net::FTP versions before 3.17 for Perl connect the passive data "}]}}}