cve.bz

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 score yetFix available

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

Ask an AI about this CVE

Show the promptExplain 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.

ProductAffected
libnetbefore 3.17
perlfrom 5.7.3 through 5.45.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14perlno fix listedDEBIAN-CVE-2026-40558
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 5 moreperlno fix listedUBUNTU-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.

References

Check your stackJSON