CVE-2026-40198
published high CVSS 3.1 · 7.5Net::CIDR::Lite versions before 0.23 for Perl does not validate IPv6 group count, which may allow IP ACL bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| STIGTSP | — | Net-CIDR-LiteNet::CIDR::Lite · 0 to < 0.23 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1624 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | perl-net-cidr-lite | Fixed | 0.23-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP4 | perl-Net-CIDR-Litenoarch | Advisory build | 0.21-150100.6.8.1 | SUSE-SU-2026:2113-1 |
| Ubuntu | bionic | libnet-cidr-lite-perl | Advisory build | 0.21-1ubuntu0.18.04.1~esm1 | USN-8406-1 |
| Amazon Linux | AL2023 | perl-Net-CIDR-Litenoarch | Listed in advisory | Not stated | ALAS2023-2026-1624 |
| Alpine Linux | v3.21 | perl-net-cidr-lite | Fixed | 0.23-r0 | Package fix record |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.22 | perl-net-cidr-lite | Fixed | 0.23-r0 | Package fix record |
| Alpine Linux | v3.23 | perl-net-cidr-lite | Fixed | 0.23-r0 | Package fix record |
| Alpine Linux | v3.24 | perl-net-cidr-lite | Fixed | 0.23-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP5 | perl-Net-CIDR-Litenoarch | Advisory build | 0.21-150100.6.8.1 | SUSE-SU-2026:2113-1 |
| SUSE / openSUSE | SLE-15-SP6 | perl-Net-CIDR-Litenoarch | Advisory build | 0.21-150100.6.8.1 | SUSE-SU-2026:2113-1 |
| SUSE / openSUSE | SLE-15-SP7 | perl-Net-CIDR-Litenoarch | Advisory build | 0.21-150100.6.8.1 | SUSE-SU-2026:2113-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDR-Liteaarch64 | Advisory build | 0.240.0-1.1 | OPENSUSE-SU-2026:10780-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDR-Liteppc64le | Advisory build | 0.240.0-1.1 | OPENSUSE-SU-2026:10780-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDR-Lites390x | Advisory build | 0.240.0-1.1 | OPENSUSE-SU-2026:10780-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDR-Litex86_64 | Advisory build | 0.240.0-1.1 | OPENSUSE-SU-2026:10780-1 |
| Ubuntu | focal | libnet-cidr-lite-perl | Advisory build | 0.21-2ubuntu0.1+esm1 | USN-8406-1 |
| Ubuntu | jammy | libnet-cidr-lite-perl | Advisory build | 0.22-1ubuntu0.1 | USN-8406-1 |
| Ubuntu | noble | libnet-cidr-lite-perl | Advisory build | 0.22-2ubuntu0.24.04.1 | USN-8406-1 |
| Ubuntu | questing | libnet-cidr-lite-perl | Advisory build | 0.22-2ubuntu0.25.10.1 | USN-8406-1 |
| Ubuntu | resolute | libnet-cidr-lite-perl | Advisory build | 0.22-2ubuntu0.26.04.1 | USN-8406-1 |
| Ubuntu | xenial | libnet-cidr-lite-perl | Advisory build | 0.21-1ubuntu0.16.04.1~esm1 | USN-8406-1 |
| Amazon Linux | AL2023 | perl-Net-CIDR-Litesrc | Listed in advisory | Not stated | ALAS2023-2026-1624 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| STIGTSP | Net::CIDR::Lite | 0 to < 0.23 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-1286 CWE-1286 Improper Validation of Syntactic Correctness of Input
References
3Provider assertions
2CPANSec · cna
Net::CIDR::Lite versions before 0.23 for Perl does not validate IPv6 group count, which may allow IP ACL bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4b7fb7fa29e6a2be1e2fb01211d55314b0696c8bce0ce29efd3f58cf68b33602
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record