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
No CVSS score yet.
On this page
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.
- CWE
- CWE-918 Server-Side Request Forgery (SSRF)
- OWASP Top 10
- A01:2025 Broken Access Control
- Published
- Assigned by
- CPANSec (CNA)
- NVD analysis
- Not in the NVD yet
- Record from
- the CVE List, synced
Fix and patched versions
- Patch: https://github.com/steve-m-hay/perl-libnet/commit/4e5ce1cfa901a9bc2aad2b635b5434154983ff12.patch
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-40558 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40558?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40558?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40558 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| libnet | before 3.17 |
| perl | from 5.7.3 through 5.45.5 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | perl | no fix listed | DEBIAN-CVE-2026-40558 |
| Ubuntu | 22.04:LTS, 24.04:LTS, 26.04:LTS and 5 more | perl | no fix listed | UBUNTU-CVE-2026-40558 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Attack patterns (CAPEC)
- CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.