CVE-2026-40558

unknown
EUVD alias: EUVD-2026-137865
Assigned by CNA: cpansec
Published 2026-11-29 · Modified 2026-11-30
CVSS v3
—
CVSS v4 NEW
—
not yet in upstream
VIR risk
—

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.

Predictions

Exploit likelihood
20%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-40558 NameCVE-2026-40558 DescriptionNet::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…

CVE-2026-40558

NameCVE-2026-40558
DescriptionNet::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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1155202

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
perl (PTS)bookworm5.36.0-7+deb12u3vulnerable
bookworm (security)5.36.0-7+deb12u4vulnerable
trixie5.40.1-6+deb13u1vulnerable
forky, sid5.44.0-3vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
perlsource(unstable)(unfixed)1155202

Notes

[trixie] - perl <no-dsa> (Minor issue)
https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12 (v3.17)
Net::FTP Perl module is shipped in src:perl

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
[trixie] - perl <no-dsa> (Minor issue)https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12 (v3.17)Net::FTP Perl module is shipped in src:perl

OS impact

debian Debian Affected 4 releases
VersionPackageStatusFixed in
trixie perl Affected —
sid perl Affected —
forky perl Affected —
bookworm perl Affected —

References

CWEs

CWE-918

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.