CVE Explorer
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 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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Net-CIDR-Lite","product":"Net::CIDR::Lite","programFiles":["Lite.pm"],"programRoutines":[{"name":"Net::CIDR::Lite::_pack_ipv6"}],"repo":"https://github.com/stigtsp/Net-CIDR-Lite","vendor":"STIGTSP","versions":[{"lessThan":"0.23","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:5e12ae0f890f5ee67df12564eead2f885d385873a671023853e80335ed4ef427 · sha256:74d39633b30902d7… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:5e12ae0f890f5ee67df12564eead2f885d385873a671023853e80335ed4ef427 · sha256:74d39633b30902d7… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-130","description":"CWE-130 Improper Handling of Length Parameter Inconsistency","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:5e12ae0f890f5ee67df12564eead2f885d385873a671023853e80335ed4ef427 · sha256:74d39633b30902d7… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"tags":["patch"],"url":"https://github.com/stigtsp/Net-CIDR-Lite/commit/b7166b1fa17b3b14b4c795ace5b3fbf71a0bd04a.patch"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5e12ae0f890f5ee67df12564eead2f885d385873a671023853e80335ed4ef427 · sha256:74d39633b30902d7… · /containers/cna/references/0
{"tags":["release-notes"],"url":"https://metacpan.org/release/STIGTSP/Net-CIDR-Lite-0.23/changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5e12ae0f890f5ee67df12564eead2f885d385873a671023853e80335ed4ef427 · sha256:74d39633b30902d7… · /containers/cna/references/1
{"tags":["related"],"url":"https://www.cve.org/CVERecord?id=CVE-2026-40198"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5e12ae0f890f5ee67df12564eead2f885d385873a671023853e80335ed4ef427 · sha256:74d39633b30902d7… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.