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
Mentioned vulnerabilities
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
- 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: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 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
- ubuntu.com/security/CVE-2026-40198 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-40198 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/38785616/ (opens in a new tab)
- github.com/stigtsp/Net-CIDR-Lite/commit/25d65f85dbe4885959a10471725ec9d250a589c3.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-40199 (opens in a new tab)
- ubuntu.com/security/notices/USN-8406-1 (opens in a new tab)