AZL-116668: CVE-2026-40558 affecting package libdnet 1.17.0-1
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 a malicious FTP server that the affected Perl Net::FTP client connects to. The server can then provide a crafted PASV reply that causes the client to initiate a TCP connection to an arbitrary host and port.
What systems are at risk from exploitation?
Clients using Net::FTP before version 3.17 are at risk when they connect to an untrusted or malicious FTP server. The greatest concern is access to internal addresses or services that are reachable from the client but not from the attacker.
How can I determine whether my environment is affected?
Identify uses of Perl Net::FTP and determine whether the installed version is earlier than 3.17. Also review whether those clients connect to FTP servers that are untrusted or could be attacker-controlled.