Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40199: CWE-130 Improper Handling of Length Parameter Inconsistency in STIGTSP Net::CIDR::Lite

0
Medium
VulnerabilityCVE-2026-40199cvecve-2026-40199cwe-130
Published: Fri Apr 10 2026 (04/10/2026, 21:49:48 UTC)
Source: CVE Database V5
Vendor/Project: STIGTSP
Product: Net::CIDR::Lite

Description

Net::CIDR::Lite versions before 0. 23 for Perl improperly handle IPv4 mapped IPv6 addresses, causing length inconsistencies in packed address representations. This leads to misaligned IPv4 parts and incorrect mask operations and address lookups, potentially allowing IP ACL bypass. The issue arises because the packing function includes an extra sentinel byte, producing an 18-byte value instead of the expected 17 bytes. This vulnerability affects valid RFC 4291 IPv4 mapped addresses and can cause the find() method to incorrectly match or miss addresses.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/10/2026, 22:20:46 UTC

Technical Analysis

CVE-2026-40199 describes a vulnerability in Net::CIDR::Lite (Perl module) versions before 0.23 where the _pack_ipv6() function incorrectly includes a sentinel byte from _pack_ipv4() when packing IPv4 mapped IPv6 addresses (::ffff:x.x.x.x). This results in an 18-byte packed address instead of 17 bytes, misaligning the IPv4 portion. Consequently, bitwise mask operations and string comparisons used in find() and bin_find() methods produce incorrect results, potentially allowing IP ACL bypass by matching or missing addresses incorrectly. The vulnerability specifically affects valid IPv4 mapped IPv6 addresses as defined in RFC 4291.

Potential Impact

The vulnerability can cause IP access control lists (ACLs) relying on Net::CIDR::Lite to incorrectly allow or deny traffic due to improper address matching. This misalignment in address length and incorrect mask operations may lead to bypass of intended IP restrictions. No known exploits in the wild have been reported. The impact is limited to systems using vulnerable versions of Net::CIDR::Lite for IP address filtering involving IPv4 mapped IPv6 addresses.

Mitigation Recommendations

Patch status is not yet confirmed — no official fix or patch is currently available for this vulnerability. Users should monitor the vendor or CPAN security advisories for updates. Until a fix is released, avoid relying on Net::CIDR::Lite versions before 0.23 for IP filtering involving IPv4 mapped IPv6 addresses or implement additional validation to compensate for this issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-04-09T22:12:06.334Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 69d9743b1cc7ad14daee2672

Added to database: 4/10/2026, 10:05:47 PM

Last enriched: 4/10/2026, 10:20:46 PM

Last updated: 4/11/2026, 12:29:38 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses