CVE-2026-40558

Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply

Published Nov 29, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Remediation

Vendor Solution

Upgrade to libnet 3.17 or later.


Vendor Workaround

Install libnet 3.17 or later into your @INC include path, so it takes precedence over the vulnerable core module shipped with Perl.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply
Weaknesses CWE-918
References

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 30, 2026, 12:14 AM
Reserved
Apr 14, 2026, 11:31 AM
Status
Received
Published
Nov 29, 2026, 11:17 PM
Modified
Nov 30, 2026, 1:17 AM