Skip to main content

Net::CIDR::Lite CVE-2026-45190

| EUVDEUVD-2026-28998 MEDIUM
Improper Validation of Unsafe Equivalence in Input (CWE-1289)
2026-05-10 CPANSec GHSA-5vf8-328m-mxj5
6.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply malformed CIDR input with newline
  2. Delivery
    Input passes weak regex validation
  3. Exploit
    Parser re-encodes to unintended address
  4. Execution
    Attacker queries find() with re-encoded address
  5. Persist
    Unexpected match returns true
  6. Impact
    ACL bypass achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware access control
Exploitation Conditions

The vulnerability is exploitable only when an application directly accepts untrusted CIDR input (IP address or CIDR mask strings) and passes it to Net::CIDR::Lite's add() method or constructor without prior validation. The input must contain either a trailing newline character (\n) or a non-ASCII digit character that the original regex anchors (^/$) fail to reject. The subsequent find() or bin_find() queries must then use an address that differs from the original malformed input but matches the re-encoded version stored internally. No authentication, special privilege level, or non-default configuration is required - the module operates with default settings. However, exploitation is limited to scenarios where the attacker can control input to CIDR functions and where the application trusts the CIDR matching result for an access control decision. Applications that validate input before passing it to the module, or that use Net::CIDR::Lite for non-security-critical address grouping, are not affected. The vulnerability does not exist in patched version 0.24 and later because the \A and \z anchors correctly reject any input with trailing or embedded whitespace.

Impact

The CVSS v3.1 score of 6.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L) indicates network-accessible, unauthenticated exploitation with low attack complexity, resulting in integrity (ACL bypass) and availability (incorrect matching) impact but no confidentiality loss. However, the EPSS score of 0.03% (10th percentile) signals very low real-world exploitation probability, which contradicts the CVSS severity. The SSVC framework (Exploitation: none, Automatable: yes, Technical Impact: partial) corroborates this assessment - no active exploitation is known, the attack is automatable, but the technical impact is partial (limited to ACL bypass scope, not full system compromise). The discrepancy between CVSS and EPSS likely reflects that CIDR validation bugs require knowledge of the specific implementation to exploit effectively, and most deployments use this library in non-security-critical contexts or behind other defenses. Organizations using Net::CIDR::Lite as a primary trust boundary for IP filtering (e.g., in firewalls or proxy ACLs) face moderate risk; those using it as a secondary check face minimal risk. The patch is available, and the exploit requires no special conditions beyond an unpatched version. Real priority should be MEDIUM for direct exposure, LOW-MEDIUM for layered environments. The absence of any KEV listing or public POC further reduces urgency despite the CVSS score.

Exploit ScenarioDerived

An attacker with the ability to influence CIDR input to a Perl application (e.g., via API parameters, configuration files, or network data) supplies a malformed IPv6 address such as '::1\n/128' (with an embedded newline). The Net::CIDR::Lite validator incorrectly approves this input, but the parser's re-encoding logic converts it to a different address (e.g., '::1a'). The attacker then queries the CIDR list for the re-encoded address using find('::1a'), which unexpectedly returns true, allowing traffic that should be blocked by an IP ACL to pass through.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 12, 2026

Net::CIDR::Lite Perl module versions before 0.24 fail to properly validate IP address and CIDR mask inputs, allowing attackers to bypass IP-based access control lists by supplying malformed addresses that are re-encoded differently by the parser. Inputs with trailing newlines or non-ASCII digit characters pass validation but resolve to unintended IP addresses, causing find() and bin_find() functions to incorrectly match or miss addresses. This affects network security controls that rely on CIDR matching for authorization decisions.

RemediationAI

Upgrade Net::CIDR::Lite to version 0.24 or later. For Perl environments using CPAN or local package managers, run: cpan -i Net::CIDR::Lite or execute perl -MCPAN -e 'install Net::CIDR::Lite' to fetch and install the patched version. Verify the installed version with: perl -e 'use Net::CIDR::Lite; print $Net::CIDR::Lite::VERSION' to confirm it is >= 0.24. If immediate patching is not possible, implement compensating controls: (1) Restrict input to Net::CIDR::Lite functions to ASCII alphanumeric characters and colons/dots only, rejecting any inputs containing whitespace, newlines, or extended characters before passing them to the module (trade-off: validation logic must be maintained separately and tested). (2) Use an additional, independently-written IP validation library to cross-check CIDR results before making security decisions (trade-off: performance overhead and complexity). (3) If this module is used in high-trust contexts (e.g., firewall rules), deploy network-level ACLs independently of application-level CIDR checks (defense in depth, not a workaround). The vendor advisory is available at https://github.com/stigtsp/Net-CIDR-Lite/commit/ca9542adec87110556601d7ce48381ea8d13e692.patch and https://metacpan.org/release/STIGTSP/Net-CIDR-Lite-0.24/changes.

Affected VersionsENISA

Net::CIDR::Lite 0 <0.24

Affected Packages

euvd net_cidr_lite fix: 0.24

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Net::CIDR::Lite is a Perl module that manages IPv4 and IPv6 CIDR address ranges for efficient IP filtering and ACL operations. The vulnerability stems from insufficient input validation in regex patterns used by the IP address and CIDR mask parsers. The original code uses anchors '^' and '$' in regular expressions (e.g., /^\d+$/, /^\d{1,3}$/), which can be bypassed because they anchor at string boundaries but do not prevent embedded newlines or non-ASCII characters from passing validation. When such malformed input is processed, the parser's re-encoding logic produces a different canonical address than the input string, creating a discrepancy between what the validator approved and what is stored and matched. The fix (per GitHub commit ca9542adec87110556601d7ce48381ea8d13e692) replaces all '^' and '$' anchors with \A and \z anchors, which enforce strict string start/end matching and reject any non-ASCII or whitespace characters. This affects the _pack_ipv4() function that validates dotted-quad octets, the add() method that validates CIDR masks, and the _unpack_ipv6() function that parses IPv6 address segments. The CWE-1289 classification (Improper Validation of Specified Quantity in Input) reflects the root cause: the validators do not correctly enforce the character set and format constraints required for valid IP notation.

Know when Net gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

3
CVSS changed
May 12, 2026 - 15:22 NVD
6.5 (MEDIUM)
CVE Published
May 10, 2026 - 20:15 nvd
UNKNOWN (no severity yet)
CVE Published
May 10, 2026 - 20:15 nvd
MEDIUM 6.5

DescriptionCVE.org

Net::CIDR::Lite versions before 0.24 for Perl does not properly validate IP address and CIDR mask inputs, which may allow IP ACL bypass.

Inputs containing a trailing newline or non-ASCII digit characters pass the validators but are then re-encoded by the parser to a different address than the input string spelled. find() and bin_find() can match or miss addresses as a result.

Example:

my $cidr = Net::CIDR::Lite->new(); $cidr->add("::1\n/128"); $cidr->find("::1a");

incorrectly returns true

See also CVE-2026-45191.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Net

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2026-111497 CRITICAL POC
9.2 Oct 21

Remote code execution is possible in Node.js releases that bundle a vulnerable Brotli decoder: a malformed brotli-compre

CVE-2023-38180 HIGH
7.5 Aug 08

.NET and Visual Studio Denial of Service Vulnerability. Rated high severity (CVSS 7.5), this vulnerability is remotely e

CVE-2026-69439 HIGH POC
8.8 Sep 08

Heap-based buffer overflow (CWE-122) in Microsoft .NET and Visual Studio allows a network-based unauthenticated attacker

CVE-2026-71328 HIGH POC
8.8 Sep 08

Heap-based buffer overflow in Microsoft Visual Studio 2022 and 2026 enables network-delivered remote code execution when

CVE-2026-62886 HIGH POC
7.8 Aug 11

Privilege escalation in Microsoft .NET runtimes (8.0, 9.0, and 10.0) and Microsoft Visual Studio 2022 and 2026 results f

CVE-2026-62871 HIGH POC
7.8 Aug 11

Heap-based buffer overflow (CWE-122) in Microsoft .NET enables local code execution across all actively supported .NET r

CVE-2026-70354 HIGH POC
7.8 Aug 11

Local code execution via out-of-bounds write in Microsoft .NET allows an unauthenticated local attacker to achieve full

CVE-2026-62909 HIGH POC
7.8 Aug 11

Local privilege escalation in Microsoft .NET (versions 8.0, 9.0, and 10.0) and Microsoft Visual Studio 2022/2026 allows

CVE-2026-62901 HIGH POC
7.5 Aug 11

Denial-of-service in Microsoft .NET runtimes and Visual Studio allows unauthenticated remote attackers to crash or hang

CVE-2026-62897 HIGH POC
7.0 Aug 11

Integer overflow in Microsoft .NET Framework and modern .NET runtimes enables local code execution with full process com

CVE-2026-62898 HIGH POC
7.5 Aug 11

Use-after-free memory corruption in Microsoft's QUIC protocol implementation (MsQuic) exposes sensitive heap memory to u

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy