{"id":"CVE-2026-40558","summary":"Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply","details":"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.","modified":"2026-11-30T02:00:10.214628379Z","published":"2026-11-29T22:40:29.485Z","database_specific":{"cna_assigner":"CPANSec","cwe_ids":["CWE-918"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40558.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/11/29/7"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40558.json"},{"type":"PACKAGE","url":"https://github.com/Perl/perl5"},{"type":"PACKAGE","url":"https://github.com/steve-m-hay/perl-libnet"},{"type":"FIX","url":"https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12.patch"},{"type":"ADVISORY","url":"https://metacpan.org/release/SHAY/libnet-3.17/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40558"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/perl/perl5","events":[{"introduced":"38bb8ccec9bd397fcc3e28e6eb0ede9740779a6b"},{"last_affected":"f379964d53a5355bbdeaef06e2aa686dcec30648"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"5.7.3"},{"last_affected":"5.45.5"}],"source":"AFFECTED_FIELD"}]}}],"versions":["v5.45.5","v5.44.0","v5.45.4","v5.45.2","v5.45.0","v5.44.0-RC2","v5.44.0-RC1","v5.43.11","v5.43.10","v5.43.9","v5.43.8","v5.42.0","v5.43.6","v5.43.2","v5.43.1","v5.43.0","v5.42.0-RC3","v5.42.0-RC2","v5.42.0-RC1","v5.41.13","v5.41.12","v5.41.11","v5.41.10","v5.41.9","v5.41.8","v5.41.7","v5.41.5","v5.41.4","v5.41.3","v5.40.0","v5.41.2","v5.41.1","v5.41.0","v5.40.0-RC2","v5.40.0-RC1","v5.39.8","v5.39.7","v5.39.5","v5.39.4","v5.38.0","v5.39.3","v5.39.1","v5.39.0","v5.38.0-RC2","v5.38.0-RC1","v5.37.11","v5.37.10","v5.37.9","v5.37.7","v5.37.6","v5.37.5","v5.37.4","v5.37.3","v5.37.2","v5.37.1","v5.36.0","v5.37.0","v5.36.0-RC3","v5.35.11","v5.35.10","v5.34.0","v5.35.9","v5.35.8","v5.35.6","v5.35.5","v5.35.3","v5.35.0","v5.34.0-RC2","v5.34.0-RC1","v5.33.9","v5.33.8","v5.33.7","v5.32.0","v5.33.4","v5.33.3","v5.33.2","v5.33.1","v5.33.0","v5.32.0-RC1","v5.31.11","v5.31.7","v5.31.5","v5.30.0","v5.31.4","v5.31.3","v5.31.2","v5.31.1","v5.31.0","v5.30.0-RC2","v5.30.0-RC1","v5.29.10","v5.29.9","v5.29.8","v5.29.7","v5.29.6","v5.29.5","v5.28.0","v5.29.1","v5.29.0","v5.28.0-RC4","v5.28.0-RC3","v5.28.0-RC2","v5.28.0-RC1","v5.27.11","v5.27.10","v5.27.8","v5.27.7","v5.27.6","v5.27.5","v5.27.3","v5.26.0","v5.27.0","v5.26.0-RC2","v5.25.11","v5.25.9","v5.25.7","v5.25.5","v5.25.4","v5.25.3","v5.24.0","v5.25.2","v5.25.0","v5.24.0-RC5","v5.24.0-RC4","v5.24.0-RC3","v5.24.0-RC2","v5.24.0-RC1","v5.23.7","v5.23.6","v5.23.4","v5.23.3","if-0.0605","v5.23.2","v5.23.1","v5.23.0","v5.22.0","v5.22.0-RC2","v5.22.0-RC1","v5.21.11","if-0.0604","v5.21.10","v5.21.9","v5.21.8","v5.21.6","v5.21.5","v5.21.4","v5.21.1","v5.21.0","v5.20.0","v5.20.0-RC1","v5.19.11","v5.19.7","v5.19.5","v5.19.3","v5.19.2","if-0.0603","v5.19.1","v5.18.0","v5.19.0","v5.18.0-RC4","v5.18.0-RC3","v5.18.0-RC2","v5.18.0-RC1","v5.17.9","v5.17.8","v5.17.7.0","v5.17.7","v5.17.6","v5.17.4","v5.17.2","v5.17.0","v5.16.0","v5.16.0-RC2","v5.16.0-RC1","v5.15.9","v5.15.5","v5.15.4","v5.15.3","v5.15.2","v5.15.1","v5.15.0","v5.14.0","v5.14.0-RC3","v5.14.0-RC2","v5.14.0-RC1","v5.13.11","v5.13.10","v5.13.9","v5.13.8","v5.13.7","v5.13.6","v5.13.5","v5.13.4","v5.13.3","v5.13.2","v5.13.1","v5.12.0","v5.13.0","v5.12.0-RC5","v5.12.0-RC4","v5.12.0-RC3","v5.12.0-RC2","v5.12.0-RC1","v5.12.0-RC0","v5.11.5","v5.11.4","v5.11.3","v5.11.1","v5.11.0","GitLive-blead","v5.10.0","perl-5.9.5","perl-5.9.4","perl-5.9.3","perl-5.9.2","perl-5.9.1","perl-5.9.0","perl-5.8.0","perl-5.7.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40558.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/steve-m-hay/perl-libnet","events":[{"introduced":"0"},{"fixed":"038b65c0ad495434c7bcac1509f39e9aa09dcc05"},{"fixed":"4e5ce1cfa901a9bc2aad2b635b5434154983ff12"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"3.17"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"4e5ce1cfa901a9bc2aad2b635b5434154983ff12"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v3.16","v3.15","v3.14","v3.13","v3.12","v3.11","v3.10","v3.09","v3.08","v3.07","v3.06","v3.05","v3.04","v3.03","v3.02","v3.01","v3.00","v1.30","v1.29","v1.28","v1.27","v1.26","v1.25","v1.24","v1.23","v1.22_02","v1.22_01","v1.21","v1.22","v1.20","v1.19","v1.18","v1.17","v1.16","v1.15","v1.14","v1.13","v1.12","v1.11","v1.10","v1.0901","v1.09","v1.0702","v1.07","v1.0607","v1.06"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40558.json"}}],"schema_version":"1.9.2"}