Skip to main content
VulnerabilityPublished Updated

CVE-2026-40198: Libnet cidr lite perl · Net::CIDR::Lite versions before 0.23 for Perl does not validate IPv6 group

Affects libnet-cidr-lite-perlSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-40198· High 7.5

Not known to be exploited · CVSS 7.5 High · fixed in 0.21-1ubuntu0.16.04.1~esm1 : patch libnet-cidr-lite-perl soon.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
7.5High
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:N/I:H/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 does not validate IPv6 group count, which may allow IP ACL bypass. _pack_ipv6() does not check that uncompressed IPv6 addresses (without ::) have exactly 8 hex groups. Inputs like "abcd", "1:2:3", or "1:2:3:4:5:6:7" are accepted and produce packed values of wrong length (3, 7, or 15 bytes instead of 17). The packed values are used internally for mask and comparison operations. find() and bin_find() use Perl string comparison (lt/gt) on these values, and comparing strings of different lengths gives wrong results. This can cause find() to incorrectly report an address as inside or outside a range. Example: my $cidr = Net::CIDR::Lite->new("::/8"); $cidr->find("1:2:3"); # invalid input, incorrectly returns true This is the same class of input validation issue as CVE-2021-47154 (IPv4 leading zeros) previously fixed in this module. See also CVE-2026-40199, a related issue in the same function affecting IPv4 mapped IPv6 addresses.

References

Community reviews

Loading reviews…