Skip to main content
VulnerabilityPublished Updated

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

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-40199· Medium 6.5

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

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=resoluteOther threatsAffected
  • <0.22-2ubuntu0.26.04.1
Fixed in
  • 0.22-2ubuntu0.26.04.1
Ubuntu 25.10libnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=questingOther threatsAffected
  • <0.22-2ubuntu0.25.10.1
Fixed in
  • 0.22-2ubuntu0.25.10.1
Ubuntu 24.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=nobleOther threatsAffected
  • <0.22-2ubuntu0.24.04.1
Fixed in
  • 0.22-2ubuntu0.24.04.1
Ubuntu 22.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=jammyOther threatsAffected
  • <0.22-1ubuntu0.1
Fixed in
  • 0.22-1ubuntu0.1
Ubuntu Pro 20.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=esm-infra/focalOther threatsAffected
  • <0.21-2ubuntu0.1+esm1
Fixed in
  • 0.21-2ubuntu0.1+esm1
Ubuntu Pro 18.04 LTSlibnet-cidr-lite-perlpkg:deb/ubuntu/libnet-cidr-lite-perl?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <0.21-1ubuntu0.18.04.1~esm1
Fixed in
  • 0.21-1ubuntu0.18.04.1~esm1

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

Community reviews

Loading reviews…