cve.bz

CVE-2026-40199 stigtsp net\

6.5 mediumEPSS 0.4%Fix available

Medium (6.5) in stigtsp net\. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.4% (up from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-04-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-130 Improper Handling of Length Parameter Inconsistency
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40199 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40199?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40199?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40199 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • stigtsp:net\

Versions

From the CNA's record in the CVE List.

ProductAffected
STIGTSP Net::CIDR::Litebefore 0.23

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libnet-cidr-lite-perl0.22-3~deb12u1DEBIAN-CVE-2026-40199
Debian13libnet-cidr-lite-perl0.22-3~deb13u1DEBIAN-CVE-2026-40199
Debian14libnet-cidr-lite-perl0.22-3DEBIAN-CVE-2026-40199
Ubuntu22.04:LTSlibnet-cidr-lite-perl0.22-1ubuntu0.1UBUNTU-CVE-2026-40199 USN-8406-1
Ubuntu24.04:LTSlibnet-cidr-lite-perl0.22-2ubuntu0.24.04.1UBUNTU-CVE-2026-40199 USN-8406-1
Ubuntu25.10libnet-cidr-lite-perl0.22-2ubuntu0.25.10.1UBUNTU-CVE-2026-40199 USN-8406-1
Ubuntu26.04:LTSlibnet-cidr-lite-perl0.22-2ubuntu0.26.04.1UBUNTU-CVE-2026-40199 USN-8406-1
UbuntuPro:16.04:LTSlibnet-cidr-lite-perl0.21-1ubuntu0.16.04.1~esm1UBUNTU-CVE-2026-40199 USN-8406-1
UbuntuPro:18.04:LTSlibnet-cidr-lite-perl0.21-1ubuntu0.18.04.1~esm1UBUNTU-CVE-2026-40199 USN-8406-1
UbuntuPro:20.04:LTSlibnet-cidr-lite-perl0.21-2ubuntu0.1+esm1UBUNTU-CVE-2026-40199 USN-8406-1
openSUSETumbleweedperl-Net-CIDR-Lite0.240.0-1.1openSUSE-SU-2026:10780-1
Alpinev3.21, v3.22, v3.23 and 1 moreperl-net-cidr-lite0.23-r0ALPINE-CVE-2026-40199
Azure Linux3perl-Net-CIDR-Liteno fix listedAZL-82742

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON