Skip to content
NewA calmer, faster ZeroHour

CVE-2026-40558

FTP PASV address trust in Perl Net::FTP before 3.17

CVSS
—
EPSS
—
Published
·
Modified
Analyze CVE-2026-40558 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

Perl Net::FTP before 3.17 opens the passive data channel to the IP address in a server’s 227 PASV reply and never checks it against the control-connection peer. A malicious FTP server can make a connecting client open TCP connections to arbitrary hosts and ports, including internal addresses reachable only from that client. Anyone using Net::FTP against an untrusted server is affected.

What to do: Upgrade Net::FTP to 3.17. Do not use affected clients against untrusted FTP servers until then.

ProductAffectedFixed in
Perl Net::FTPbefore 3.173.17
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Weakness
CWE-918

In the news

1 story