Skip to content
Heist/ feed
Back to feed
HighFix available

libnet-cidr-lite-perl — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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 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.

Products
libnet-cidr-lite-perl
Affected versions
0.22-2, 0.22-3~deb12u1, 0.22-3~deb12u2, 0.22-3~deb13u1, 0.22-3~deb13u2
Fixed versions
0.22-3, 0.22-3~deb12u1, 0.22-3~deb13u1
CVEs
CVE-2026-40198
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:46 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-40198

core-osv · Original source

Published 10 Apr 2026, 22:16 UTC

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.

osv:DEBIAN-CVE-2026-40198

libnet-cidr-lite-perl

Fixed versions: 0.22-3~deb12u1

libnet-cidr-lite-perl

Fixed versions: 0.22-3~deb13u1

libnet-cidr-lite-perl

Fixed versions: 0.22-3

Complete source record
{
  "id": "bddca0903e9f072c2bf579699398937e9ae6c9a609dae77eb1b8e18a5c08bea4",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-40198",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-40198",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-40198",
    "products": [
      {
        "name": {
          "value": "libnet-cidr-lite-perl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.22-3~deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.22-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libnet-cidr-lite-perl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.22-3~deb13u1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.22-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.22-3~deb12u1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.22-3~deb12u2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libnet-cidr-lite-perl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.22-3",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.22-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.22-3~deb12u1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.22-3~deb12u2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.22-3~deb13u1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.22-3~deb13u2",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-40198",
      "aliases": [
        "DEBIAN-CVE-2026-40198"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.22-3~deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libnet-cidr-lite-perl",
            "purl": "pkg:deb/debian/libnet-cidr-lite-perl?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "0.22-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40198.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.22-3~deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libnet-cidr-lite-perl",
            "purl": "pkg:deb/debian/libnet-cidr-lite-perl?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "0.22-2",
            "0.22-3~deb12u1",
            "0.22-3~deb12u2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40198.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.22-3"
                }
              ]
            }
          ],
          "package": {
            "name": "libnet-cidr-lite-perl",
            "purl": "pkg:deb/debian/libnet-cidr-lite-perl?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "0.22-2",
            "0.22-3~deb12u1",
            "0.22-3~deb12u2",
            "0.22-3~deb13u1",
            "0.22-3~deb13u2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40198.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-27T09:47:34.938455894Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40198"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-40198"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40198",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 461176,
  "published_at": "2026-04-10T22:16:21.463+00:00"
}