# 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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-29T22:40:29.485Z
- Modified: 2026-11-30T00:14:00.712Z
- Weaknesses: CWE-918
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- libnet: before 3.17
- perl: from 5.7.3 up to 5.45.5

## References

- <https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12.patch> (patch)
- <https://metacpan.org/release/SHAY/libnet-3.17/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/11/29/7>

## Sources

- CVE List: [CVE-2026-40558](https://www.cve.org/CVERecord?id=CVE-2026-40558), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-40558](https://nvd.nist.gov/vuln/detail/CVE-2026-40558), Public domain, modified 2026-11-29

---

Page: https://cve.day/CVE-2026-40558 · Whole record: https://cve.day/CVE-2026-40558.json · Rebuilt by cve.day 2026-11-30T00:42:07.260Z
