CVE-2026-40199: Libnet cidr lite perl · Net::CIDR::Lite versions before 0.23 for Perl mishandles IPv4 mapped IPv6
Affects libnet-cidr-lite-perlSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 6.5 Medium · fixed in 0.21-1ubuntu0.16.04.1~esm1 : update libnet-cidr-lite-perl when convenient.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.21-1ubuntu0.16.04.1~esm1, 0.21-1ubuntu0.18.04.1~esm1, 0.21-2ubuntu0.1+esm1 +4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Net::CIDR::Lite versions before 0.23 for Perl mishandles IPv4 mapped IPv6 addresses, which may allow IP ACL bypass. _pack_ipv6() includes the sentinel byte from _pack_ipv4() when building the packed representation of IPv4 mapped addresses like ::ffff:192.168.1.1. This produces an 18 byte value instead of 17 bytes, misaligning the IPv4 part of the address. The wrong length causes incorrect results in mask operations (bitwise AND truncates to the shorter operand) and in find() / bin_find() which use Perl string comparison (lt/gt). This can cause find() to incorrectly match or miss addresses. Example: my $cidr = Net::CIDR::Lite->new("::ffff:192.168.1.0/120"); $cidr->find("::ffff:192.168.2.0"); # incorrectly returns true This is triggered by valid RFC 4291 IPv4 mapped addresses (::ffff:x.x.x.x). See also CVE-2026-40198, a related issue in the same function affecting malformed IPv6 addresses.
References
- ubuntu.com/security/CVE-2026-40199 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-40199 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/38785618/ (opens in a new tab)
- github.com/stigtsp/Net-CIDR-Lite/commit/b7166b1fa17b3b14b4c795ace5b3fbf71a0bd04a.patch (opens in a new tab)
- metacpan.org/release/STIGTSP/Net-CIDR-Lite-0.23/changes (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-40198 (opens in a new tab)
- ubuntu.com/security/notices/USN-8406-1 (opens in a new tab)