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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| STIGTSP | Net::CIDR::Lite | < 0.23 | 0.23 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libnet-cidr-lite-perl | 0.22-3 | — |
| Debian 13 | libnet-cidr-lite-perl | 0.22-3~deb13u1 | — |
| Debian 12 | libnet-cidr-lite-perl | 0.22-3~deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | libnet-cidr-lite-perl | 0.22-2ubuntu0.26.04.1 | USN-8406-1 |
| Ubuntu 25.10 | libnet-cidr-lite-perl | 0.22-2ubuntu0.25.10.1 | USN-8406-1 |
| Ubuntu 24.04 LTS | libnet-cidr-lite-perl | 0.22-2ubuntu0.24.04.1 | USN-8406-1 |
| Ubuntu 22.04 LTS | libnet-cidr-lite-perl | 0.22-1ubuntu0.1 | USN-8406-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libnet-cidr-lite-perl | 0.21-2ubuntu0.1+esm1 | USN-8406-1 |
| Ubuntu Pro 18.04 LTS | libnet-cidr-lite-perl | 0.21-1ubuntu0.18.04.1~esm1 | USN-8406-1 |
| Ubuntu Pro 16.04 LTS | libnet-cidr-lite-perl | 0.21-1ubuntu0.16.04.1~esm1 | USN-8406-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-Net-CIDR-Lite | 0.240.0-1.1 | openSUSE-SU-2026:10780-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | perl-net-cidr-lite | 0.23-r0 | — |
| Alpine v3.23 | perl-net-cidr-lite | 0.23-r0 | — |
| Alpine v3.22 | perl-net-cidr-lite | 0.23-r0 | — |
| Alpine v3.21 | perl-net-cidr-lite | 0.23-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | perl-Net-CIDR-Lite | 0.22-8.amzn2023.0.1 | ALAS2023-2026-1624 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | perl-Net-CIDR-Lite | No fix yet | — |
Advisories 3
- USN-8406-1 libnet-cidr-lite-perl vulnerabilities Ubuntu Security Notices (USN) · Jun 8, 2026
- openSUSE-SU-2026:10780-1 perl-Net-CIDR-Lite-0.240.0-1.1 on GA media SUSE / openSUSE Security Updates · May 15, 2026
- ALAS2023-2026-1624 Moderate: perl-Net-CIDR-Lite security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Apr 30, 2026