
CVE catalog
CVE-2026-40199
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
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.31% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libnet-cidr-lite-perl | sid | 0.24-1 | fixed |
| Debian | libnet-cidr-lite-perl | forky | 0.24-1 | fixed |
| Debian | libnet-cidr-lite-perl | trixie | 0.22-3~deb13u2 | fixed |
| Debian | libnet-cidr-lite-perl | bookworm | 0.22-3~deb12u2 | fixed |
| Cpe | libnet-cidr-lite-perl | Not reported | 0.22-2ubuntu0.24.04.1 | fixed |
| Cpe | net\ | Not reported | 0.23 | fixed |
| Alpine | perl-net-cidr-lite | 3.21 | 0.23-r0 | fixed |
| Alpine | perl-net-cidr-lite | 3.22 | 0.23-r0 | fixed |
| Alpine | perl-net-cidr-lite | 3.23 | 0.23-r0 | fixed |
| Alpine | perl-net-cidr-lite | 3.24 | 0.23-r0 | fixed |
| Ubuntu | libnet-cidr-lite-perl | pro | 0.21-2 | vulnerable |
| Ubuntu | libnet-cidr-lite-perl | pro | 0.21-2ubuntu0.1 | vulnerable |
| Ubuntu | libnet-cidr-lite-perl | pro | 0.21-2ubuntu0.1+esm1 | fixed |
| Ubuntu | libnet-cidr-lite-perl | 22.04 | 0.22-1 | vulnerable |
| Ubuntu | libnet-cidr-lite-perl | 22.04 | 0.22-1ubuntu0.1 | fixed |
| Ubuntu | libnet-cidr-lite-perl | 24.04 | 0.22-2 | vulnerable |
| Ubuntu | libnet-cidr-lite-perl | 24.04 | 0.22-2ubuntu0.24.04.1 | fixed |
| Ubuntu | libnet-cidr-lite-perl | 25.10 | 0.22-2 | vulnerable |
| Ubuntu | libnet-cidr-lite-perl | 25.10 | 0.22-2ubuntu0.25.10.1 | fixed |
| Ubuntu | libnet-cidr-lite-perl | 26.04 | 0.22-2 | vulnerable |
| Ubuntu | libnet-cidr-lite-perl | 26.04 | 0.22-2ubuntu0.26.04.1 | fixed |
| Cpe | net\ | Not reported | 0.23 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libnet-cidr-lite-perl | source | sid | 0.22-3 | not yet assigned | Not reported | Not reported |
| Debian | libnet-cidr-lite-perl | source | forky | 0.22-3 | not yet assigned | Not reported | Not reported |
| Debian | libnet-cidr-lite-perl | source | trixie | 0.22-3~deb13u1 | not yet assigned | Not reported | Not reported |
| Debian | libnet-cidr-lite-perl | source | bookworm | 0.22-3~deb12u1 | not yet assigned | Not reported | Not reported |
| Cpe | libnet-cidr-lite-perl | cpe | Not reported | 0.22-2ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Cpe | net\ | cpe | Not reported | 0.23 | Not reported | Not reported | Not reported |
| Alpine | perl-net-cidr-lite | apk | 3.21 | 0.23-r0 | Not reported | ALPINE-CVE-2026-40199 | Not reported |
| Alpine | perl-net-cidr-lite | apk | 3.22 | 0.23-r0 | Not reported | ALPINE-CVE-2026-40199 | Not reported |
| Alpine | perl-net-cidr-lite | apk | 3.23 | 0.23-r0 | Not reported | ALPINE-CVE-2026-40199 | Not reported |
| Alpine | perl-net-cidr-lite | apk | 3.24 | 0.23-r0 | Not reported | ALPINE-CVE-2026-40199 | Not reported |
| Ubuntu | libnet-cidr-lite-perl | deb | pro | 0.21-2ubuntu0.1+esm1 | Not reported | UBUNTU-CVE-2026-40199 | Not reported |
| Ubuntu | libnet-cidr-lite-perl | deb | 22.04 | 0.22-1ubuntu0.1 | Not reported | UBUNTU-CVE-2026-40199 | Not reported |
| Ubuntu | libnet-cidr-lite-perl | deb | 24.04 | 0.22-2ubuntu0.24.04.1 | Not reported | UBUNTU-CVE-2026-40199 | Not reported |
| Ubuntu | libnet-cidr-lite-perl | deb | 25.10 | 0.22-2ubuntu0.25.10.1 | Not reported | UBUNTU-CVE-2026-40199 | Not reported |
| Ubuntu | libnet-cidr-lite-perl | deb | 26.04 | 0.22-2ubuntu0.26.04.1 | Not reported | UBUNTU-CVE-2026-40199 | Not reported |
| Cpe | net\ | cpe | Not reported | 0.23 | Not reported | NVD-CVE-2026-40199 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libnet-cidr-lite-perl]Fixed
Details (2)
0.22-3~deb12u2· all · bookwormFixed · Fixed:
0.22-3~deb12u1nvd · libnet-cidr-lite-perl · debian · bookworm; nvd · libnet-cidr-lite-perl · debian · 12
0.22-3~deb12u2· all · bookwormFixed · Fixed:
0.22-3~deb12u1nvd · libnet-cidr-lite-perl · debian · bookworm; nvd · libnet-cidr-lite-perl · debian · 12
[Debian 13 (Trixie)]
- [libnet-cidr-lite-perl]Fixed
Details (2)
0.22-3~deb13u2· all · trixieFixed · Fixed:
0.22-3~deb13u1nvd · libnet-cidr-lite-perl · debian · 13
0.22-3~deb13u2· all · trixieFixed · Fixed:
0.22-3~deb13u1nvd · libnet-cidr-lite-perl · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10780-1.json]
- [https://github.com/stigtsp/Net-CIDR-Lite/commit/b7166b1fa17b3b14b4c795ace5b3fbf71a0bd04a.patch]
- [https://metacpan.org/release/STIGTSP/Net-CIDR-Lite-0.23/changes]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-40199]
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-40199]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-40199]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-40199]
- [https://security-tracker.debian.org/tracker/CVE-2026-40199]
- [https://ubuntu.com/security/notices/USN-8406-1]
- [https://www.cve.org/CVERecord?id=CVE-2026-40198]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]