Skip to main content

Net::IP::LPM EUVDEUVD-2026-41541

| CVE-2026-56015 CRITICAL
Out-of-bounds Read (CWE-125)
2026-07-03 9b29abf9-4ab0-4765-b253-1875cd9b441e GHSA-q2wj-rfvr-wf9p
9.1
CVSS 3.1 · Vendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
View

Attack ChainAIDerived

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

  1. Access
    Supply oversized CIDR prefix to app
  2. Delivery
    App calls add() with '/255' prefix
  3. Exploit
    Trie builder walks bits past buffer
  4. Execution
    Heap out-of-bounds read during construction
  5. Impact
    Process aborts under hardened allocator (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target application to call Net::IP::LPM's add() with an attacker-influenced prefix string whose prefix length exceeds the address-family width - specifically greater than /32 for IPv4 or greater than /128 for IPv6 (e.g. add("1.2.3.4/255") or add("2001:db8::/255")). Limiting factors that sharply reduce real-world risk: add() is normally supplied operator-controlled configuration rather than remote input, so network exploitability depends entirely on the consuming app's data flow; the over-read contents are never exposed through lookups or dump(), so no information actually leaks; and a process abort only occurs when Perl is built with AddressSanitizer, valgrind, or a hardened allocator - on a standard allocator the read is silent and harmless. There is no authentication or user-interaction requirement at the library level, but reachability is gated by application design, not by the module itself.

Impact

Signals conflict sharply. The published CVSS 3.1 vector (9.1, AV:N/AC:L/PR:N/UI:N/C:H/A:H) implies a critical, remotely exploitable confidentiality-and-availability flaw, but the description directly contradicts the C:H rating: the out-of-bounds bytes are never exposed through the module API, so there is no realistic information disclosure despite the 'Information Disclosure' tag. The only tangible effect is a potential process crash, and only in builds using ASan/valgrind/a hardened allocator - otherwise the over-read is benign. EPSS (0.23%, 13th percentile), SSVC exploitation 'none', and absence from CISA KEV all point to low real-world urgency; SSVC 'Automatable: yes' and 'Technical Impact: partial' reflect that IF an app pipes untrusted prefix strings to add() it triggers reliably, but that data-flow is uncommon since add() is normally fed operator-controlled configuration. Net assessment: this is a high-CVSS/low-real-risk hygiene bug, not an emergency. The AV:N and C:H metrics should be verified against the actual call path - network reachability depends entirely on whether the consuming application exposes add() to remote input.

Exploit ScenarioDerived

An application that builds a Net::IP::LPM trie from externally supplied prefix lists (for example, importing a route/ACL file or accepting CIDR strings over an API) passes an entry like "1.2.3.4/255" or "2001:db8::/255" to add(). During trie construction the module reads ~32 bytes past the packed address buffer; in a normal build this is silent, but on a hardened-allocator or ASan/valgrind build the process aborts, causing a denial of service. No public exploit code exists, and because the over-read bytes are never returned, there is no demonstrated data leak.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 06, 2026

Out-of-bounds heap read in the Net::IP::LPM Perl module (all versions through 1.10) is triggered when an application passes an oversized CIDR prefix length (e.g. add("1.2.3.4/255") or a /255 IPv6 prefix) to the trie builder, which walks the packed address buffer by the attacker-supplied bit count without validating it against the 32-bit/128-bit address width. The read runs at most ~32 bytes past a 4- or 16-byte buffer and its contents are never returned through the module's API, so real-world impact is limited to a possible process abort under AddressSanitizer, valgrind, or a hardened allocator. No public exploit identified at time of analysis; EPSS is low (0.23%, 13th percentile) and SSVC lists exploitation status as none.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the official patch published at https://security.metacpan.org/patches/N/Net-IP-LPM/1.10/CVE-2026-56015-r2.patch, or upgrade to the next Net::IP::LPM release incorporating it once published on CPAN (track the CPAN RT ticket https://rt.cpan.org/Ticket/Display.html?id=179856 and the oss-security thread https://seclists.org/oss-sec/2026/q3/16 for the tagged version). As a compensating control until patched, validate prefix length in your own code before calling add(): reject or clamp any prefix whose numeric suffix exceeds 32 for IPv4 or 128 for IPv6, which fully prevents the over-read with no functional side effects since such prefixes are invalid anyway. Additionally, avoid passing untrusted or user-supplied CIDR strings directly into add(); restrict that path to validated operator-controlled configuration. Running production Perl with a hardened allocator would turn the benign over-read into a crash, so it is not a mitigation here - it converts an info-safe read into a denial-of-service and should not be relied on as a fix.

Affected VersionsENISA

Net::IP::LPM 0 ≤1.10

Affected Packages

euvd net_ip_lpm no fix

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::IP::LPM is a CPAN XS/C module implementing Longest Prefix Match lookups over IPv4/IPv6 routing-style prefixes using a bit-trie. The root cause is CWE-125 (Out-of-bounds Read): add() forwards the user-supplied prefix string to the internal addPrefixToTrie(), which iterates prefix_length bits and dereferences prefix[byte] for byte up to prefix_len/8. Because prefix_length is stored as an unsigned char and never bounded to the address family width (32 for IPv4, 128 for IPv6), a value above the width causes the trie walk to index beyond the 4-byte or 16-byte packed address, reading adjacent heap memory during trie construction. The over-read is bounded to at most 32 bytes past the buffer start and the out-of-range bytes influence trie shape only - lookups and dump() format only the valid address width, so leaked bytes are not surfaced.

Know when the next one hits your stack

  • 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 (9b29abf9-4ab0-4765-b253-1875cd9b441e) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 5.3 MEDIUM

Over-read bytes are never exposed (C:N, I:N); only realistic effect is a bounded read that can abort the process under a hardened allocator (A:L); reachable network via a consuming app that passes untrusted prefixes, so AV:N/AC:L/PR:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).

CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e

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

Lifecycle Timeline

2
CVSS changed
Jul 06, 2026 - 19:22 NVD
9.1 (CRITICAL)
CVE Published
Jul 03, 2026 - 13:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Net::IP::LPM versions through 1.10 for Perl allow a heap out-of-bounds read via an unbounded prefix length.

add() passes the prefix string to the trie builder addPrefixToTrie() without checking it against the address width.

addPrefixToTrie() then walks the prefix buffer by prefix_length bits, reading prefix[byte] for byte up to prefix_len/8, where prefix is the 4-byte (IPv4) or 16-byte (IPv6) packed address. A prefix length greater than 32 for IPv4 or 128 for IPv6, for example add("1.2.3.4/255", $v) or add("2001:db8::/255", $v), reads past the end of the packed address.

The out-of-bounds read happens during trie construction and is bounded: the prefix length is stored as an unsigned char, so the bit walk reads at most 32 bytes from the start of the packed address, a short distance past the end of the 4-byte or 16-byte buffer. It is detectable under AddressSanitizer, valgrind, or a hardened allocator, where it can abort the process. Lookups and dump() format only the valid address width, so the out-of-bounds bytes are not exposed through the module's API.

Executive ViewAI

Why It Matters

Net::IP::LPM Perl module (all versions through 1.10) contains a CVSS 9.1 out-of-bounds heap read vulnerability triggered by oversized CIDR prefix inputs, but practical exploitability is severely constrained-no public exploit identified at time of analysis, exploitation probability is 0.2% (EPSS), and real-world impact is limited to process abort only in hardened debug environments. This represents a significant mismatch between the vulnerability's theoretical severity rating and its operational risk to organizations, enabling a measured response focused on input validation rather than emergency patching.

Business Impact: Low
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce strict input validation-reject CIDR prefixes exceeding 32 bits (/IPv4) or 128 bits (/IPv6); (2) restrict CIDR input sources to trusted internal administration only, not user-facing input; (3) deploy process monitoring and automated restart to mitigate availability risk; (4) prioritize migration to alternative IP trie implementations (e.g., Net::CIDR, IPAddress modules) if feasible within 90 days.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche CPAN Perl module for longest-prefix matching, specialized use
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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