CVE-2026-40199
Last modified
CVE-2026-40199 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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). EPSS estimates a 0.31% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Stigtsp | Net\ | < 0.23 | Cidr\ |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40199?
How severe is CVE-2026-40199?
How do I fix CVE-2026-40199?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40193maddy is a composable, all-in-one mail server. Versions prio…8.2
- CVE-2026-40194phpseclib is a PHP secure communications library. Starting i…3.7
- CVE-2026-40195Incus is a system container and virtual machine manager. In …6.5
- CVE-2026-40196HomeBox is a home inventory and organization system. Version…8.1
- CVE-2026-40197Incus is a system container and virtual machine manager. In …6.5
- CVE-2026-40198Net::CIDR::Lite versions before 0.23 for Perl does not valid…7.5
- CVE-2026-4020The Gravity SMTP plugin for WordPress is vulnerable to Sensi…7.5
- CVE-2026-40200An issue was discovered in musl libc 0.7.10 through 1.2.6. S…8.1
- CVE-2026-40201@diplodoc/search-extension 1.0.0 through 3.x before 3.0.3 al…5.4
- CVE-2026-40208An attacker might be able to delay the processing of DoH3 qu…3.7
- CVE-2026-40209An attacker might be able to cause outgoing TCP connections …5.3
- CVE-2026-4021The Contest Gallery plugin for WordPress is vulnerable to an…8.1
Are you affected by CVE-2026-40199?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
