AZL-116674: CVE-2026-40558 affecting package perl 5.38.2-517
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.
Affected Software
Event History
Frequently Asked Questions
What must an attacker control to exploit this issue?
The attacker must operate or control an FTP server that the affected Perl client connects to. They can then supply a crafted PASV reply that directs the client's passive data connection to an arbitrary host and port.
What systems are realistically exposed?
Systems using affected Net::FTP versions as an FTP client are exposed when they connect to an untrusted or malicious FTP server. The greatest risk is for clients that can reach internal-only addresses, because the server can cause connection attempts to those addresses.
How can I tell whether a client is affected?
Check the Net::FTP version used by the Perl application. Versions before 3.17 are affected; the vulnerable behavior occurs when the application uses passive FTP mode through the pasv method.