CVE catalog

CVE-2026-40198

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

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.31% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibnet-cidr-lite-perlsid0.24-1fixed
Debianlibnet-cidr-lite-perlforky0.24-1fixed
Debianlibnet-cidr-lite-perltrixie0.22-3~deb13u2fixed
Debianlibnet-cidr-lite-perlbookworm0.22-3~deb12u2fixed
Cpelibnet-cidr-lite-perlNot reported0.22-2ubuntu0.24.04.1fixed
Cpenet\Not reported0.23fixed
Alpineperl-net-cidr-lite3.210.23-r0fixed
Alpineperl-net-cidr-lite3.220.23-r0fixed
Alpineperl-net-cidr-lite3.230.23-r0fixed
Alpineperl-net-cidr-lite3.240.23-r0fixed
Ubuntulibnet-cidr-lite-perlpro0.21-2vulnerable
Ubuntulibnet-cidr-lite-perlpro0.21-2ubuntu0.1vulnerable
Ubuntulibnet-cidr-lite-perlpro0.21-2ubuntu0.1+esm1fixed
Ubuntulibnet-cidr-lite-perl22.040.22-1vulnerable
Ubuntulibnet-cidr-lite-perl22.040.22-1ubuntu0.1fixed
Ubuntulibnet-cidr-lite-perl24.040.22-2vulnerable
Ubuntulibnet-cidr-lite-perl24.040.22-2ubuntu0.24.04.1fixed
Ubuntulibnet-cidr-lite-perl25.100.22-2vulnerable
Ubuntulibnet-cidr-lite-perl25.100.22-2ubuntu0.25.10.1fixed
Ubuntulibnet-cidr-lite-perl26.040.22-2vulnerable
Ubuntulibnet-cidr-lite-perl26.040.22-2ubuntu0.26.04.1fixed
Opensuseperl-Net-CIDR-Litetumbleweed0.240.0-1.1fixed
Cpenet\Not reported0.23fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibnet-cidr-lite-perlsourcesid0.22-3not yet assignedNot reportedNot reported
Debianlibnet-cidr-lite-perlsourceforky0.22-3not yet assignedNot reportedNot reported
Debianlibnet-cidr-lite-perlsourcetrixie0.22-3~deb13u1not yet assignedNot reportedNot reported
Debianlibnet-cidr-lite-perlsourcebookworm0.22-3~deb12u1not yet assignedNot reportedNot reported
Cpelibnet-cidr-lite-perlcpeNot reported0.22-2ubuntu0.24.04.1Not reportedNot reportedNot reported
Cpenet\cpeNot reported0.23Not reportedNot reportedNot reported
Alpineperl-net-cidr-liteapk3.210.23-r0Not reportedALPINE-CVE-2026-40198Not reported
Alpineperl-net-cidr-liteapk3.220.23-r0Not reportedALPINE-CVE-2026-40198Not reported
Alpineperl-net-cidr-liteapk3.230.23-r0Not reportedALPINE-CVE-2026-40198Not reported
Alpineperl-net-cidr-liteapk3.240.23-r0Not reportedALPINE-CVE-2026-40198Not reported
Ubuntulibnet-cidr-lite-perldebpro0.21-2ubuntu0.1+esm1Not reportedUBUNTU-CVE-2026-40198Not reported
Ubuntulibnet-cidr-lite-perldeb22.040.22-1ubuntu0.1Not reportedUBUNTU-CVE-2026-40198Not reported
Ubuntulibnet-cidr-lite-perldeb24.040.22-2ubuntu0.24.04.1Not reportedUBUNTU-CVE-2026-40198Not reported
Ubuntulibnet-cidr-lite-perldeb25.100.22-2ubuntu0.25.10.1Not reportedUBUNTU-CVE-2026-40198Not reported
Ubuntulibnet-cidr-lite-perldeb26.040.22-2ubuntu0.26.04.1Not reportedUBUNTU-CVE-2026-40198Not reported
Opensuseperl-Net-CIDR-Literpmtumbleweed0.240.0-1.1Not reportedOPENSUSE-SU-2026:10780-1Not reported
Cpenet\cpeNot reported0.23Not reportedNVD-CVE-2026-40198Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 0.22-3~deb12u2 · all · bookworm

      Fixed · Fixed: 0.22-3~deb12u1

      nvd · libnet-cidr-lite-perl · debian · bookworm; nvd · libnet-cidr-lite-perl · debian · 12

    • 0.22-3~deb12u2 · all · bookworm

      Fixed · Fixed: 0.22-3~deb12u1

      nvd · libnet-cidr-lite-perl · debian · bookworm; nvd · libnet-cidr-lite-perl · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 0.22-3~deb13u2 · all · trixie

      Fixed · Fixed: 0.22-3~deb13u1

      nvd · libnet-cidr-lite-perl · debian · 13

    • 0.22-3~deb13u2 · all · trixie

      Fixed · Fixed: 0.22-3~deb13u1

      nvd · libnet-cidr-lite-perl · debian · 13

[openSUSE Tumbleweed]

  • Source package: [perl-Net-CIDR-Lite]

    Details (1)
    • 0.240.0-1.3 · noarch · tumbleweed

      Fixed · Fixed: 0.240.0-1.1

      nvd · perl-Net-CIDR-Lite · opensuse · tumbleweed

Observed:

References