CVE-2026-40558
publishedNet::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | libnet0 to < 3.17 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Not stated | — | perl5.7.3 through 5.45.5 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| libnet | 0 to < 3.17 (affected · custom)Default: unaffected | CPANSec · cna | |
| perl | 5.7.3 through 5.45.5 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-918 CWE-918 Server-Side Request Forgery
References
3Provider assertions
2CPANSec · cna
Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3f5a7cd0c428b2bfd25a474197fd9f443e9b6cf42f86055a8b6da4ccfa002d46
- Ingested
- 30 Nov 2026, 00:42:27 UTC
- Source record
- Official CVE record