Skip to content
FlawDB
Sign in

CVE-2026-40558

UNSCOREDEPSS 25%

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

AI summary AI generated

A malicious FTP server can make Perl's Net::FTP client open TCP connections to arbitrary internal hosts and ports via the PASV reply address.

Mitigation

  • Upgrade libnet to 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.

Who should check

  • Anyone running libnet < 3.17
  • Anyone running perl >= 5.7.3, <= 5.45.5

Vulnerability facts

Affected
libnet < 3.17; perl >= 5.7.3, <= 5.45.5
Fixed in
libnet 3.17
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
EPSS
0.31% chance of exploitation in 30 days (percentile 25, 2026-12-01)
CWE
CWE-918
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
libnet< 3.17—cvelist
perl>= 5.7.3, <= 5.45.5—cvelist

Versions mentioned in the description AI generated

Extracted by AI; each line quotes the description word for word. Source data above takes precedence.

  • Affected: Net::FTP (Perl libnet) Net::FTP versions before 3.17 for Perl Net::FTP versions before 3.17 for Perl
  • Fixed: Net::FTP (Perl libnet) 3.17 Net::FTP versions before 3.17 for Perl

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-40558. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-40558.md
Affected: libnet < 3.17; perl >= 5.7.3, <= 5.45.5
Fixed in: libnet 3.17

Steps:
1. Search this machine and project for libnet, perl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-40558 being exploited?

There is no confirmed exploitation: CVE-2026-40558 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-12-01).

How serious is CVE-2026-40558?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-40558?

libnet < 3.17; perl >= 5.7.3, <= 5.45.5.

Is there a fix for CVE-2026-40558?

Yes. Fixed in libnet 3.17. Upgrade libnet to 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.

How do I check if I'm affected by CVE-2026-40558?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors