Skip to main content

Net::IP::LPM EUVDEUVD-2026-72526

| CVE-2026-86287 HIGH
Improper Validation of Specified Type of Input (CWE-1287)
2026-09-07 CPANSec GHSA-456r-qjr2-xph9
7.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 prefix via external input
  2. Delivery
    Application calls Net::IP::LPM::add() without validation
  3. Exploit
    Perl numifies or C truncates prefix_len to 0
  4. Execution
    /0 default route inserted into trie
  5. Persist
    All subsequent lookups match every address
  6. Impact
    IP-based access controls silently bypassed

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Specified type validation
Exploitation Conditions

Exploitation requires that attacker-controlled data reaches the Net::IP::LPM::add() function as the prefix string argument. This occurs when an application reads IP prefixes from external input (e.g., user-submitted data, BGP-like feeds, database rows writable by untrusted users, or API parameters) and passes them to the module without prior validation. Applications that populate the prefix table solely from admin-controlled static configuration are not exposed. The malformed string need only contain a non-decimal prefix component (e.g., '/abc', '/0x20', a Unicode digit sequence, or an integer ≥ 2^32) to trigger the poisoning. After a single malformed entry is added, every address matches on lookup - the table remains poisoned for the lifetime of the LPM instance. No authentication against the library itself is required; the authentication requirement is determined entirely by the consuming application's exposure of the add() path.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H scores 7.5 and identifies only an availability impact. This understates the actual risk: poisoning an allow-list so that every address matches is an integrity (access control bypass) outcome, not merely an availability one; the I:N metric appears incorrect. An independent assessment yields CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (9.1), reflecting that the two failure modes map to distinct impact pillars. EPSS at 0.17% (7th percentile) and no KEV listing indicate exploitation has not been observed in the wild. The practical risk is highly application-dependent: any Perl application that feeds externally-controlled prefix strings into Net::IP::LPM::add() is exposed, whereas applications whose prefix tables are populated solely from hardened admin configuration are not. The vulnerability requires no authentication against the library itself, but the attacker path to the add() function is mediated by the consuming application.

Exploit ScenarioDerived

An application uses Net::IP::LPM to implement an IP allowlist, reading prefix entries from an external source such as an API, database, or configuration endpoint accessible to remote users. An attacker submits a malformed prefix such as '10.0.0.0/abc' or '10.0.0.0/4294967296'. The module accepts the entry, treating the prefix length as zero, which inserts a /0 default route into the trie. All subsequent lookups return a match regardless of source address, bypassing the allowlist entirely. No public proof-of-concept code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 08, 2026

Input validation failure in Net::IP::LPM before 1.12 for Perl allows malformed CIDR prefix lengths to silently poison the longest-prefix-match lookup table. Non-numeric strings, Unicode digits (Arabic-Indic, fullwidth), hex notation, and integers exceeding 31 bits are all accepted and numified to zero or silently truncated by the XS/C layer, causing the malformed entry to be recorded as a /0 default route. A single such entry causes every subsequent lookup to succeed, rendering any IP-based allow-list universally permissive and any deny-list universally blocking. No public exploit has been identified at time of analysis, and EPSS is 0.17% (7th percentile).

RemediationAI

Upgrade Net::IP::LPM to version 1.12 or later via CPAN: 'cpan Net::IP::LPM' or 'cpanm Net::IP::LPM'. The patch commit is available at https://github.com/robrwo/perl-Net-IP-LPM/commit/814f8baa85537827db8c3b3d251e48db7aca318f.patch and the release changelog is at https://metacpan.org/release/RRWO/Net-IP-LPM-1.12/changes. As a pre-patch workaround for applications that accept externally-supplied prefix strings, add input validation before calling add(): enforce that the prefix length component matches /^[0-9]+$/ and is within the valid range (0-32 for IPv4, 0-128 for IPv6). Reject any entry that fails validation before it reaches the module. This workaround trades a small amount of application-layer complexity for protection without requiring a module upgrade, but the module upgrade is strongly preferred as it is authoritative and eliminates both failure modes (string coercion and integer truncation).

Affected ProductsAI

Net::IP::LPM versions before 1.12 for Perl are affected. The fixed release is Net::IP::LPM 1.12, published to CPAN by author RRWO and documented in the Changes file at https://metacpan.org/release/RRWO/Net-IP-LPM-1.12/changes. No CPE string is present in the input data; the canonical CPAN distribution name is Net-IP-LPM. All platforms running a vulnerable version of the module under any Perl interpreter are affected, as the flaw spans both the Perl wrapper and the XS/C layer.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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 Perl module implementing a Longest Prefix Match trie for IPv4 and IPv6 addresses, used to build IP-based routing or access-control tables. The module is a Perl XS hybrid: the hot path is implemented in C (lpm_lib.c) with a Perl wrapper (lib/Net/IP/LPM.pm). CWE-1287 (Improper Validation of Specified Type of Input) captures both failure modes: the Perl add() wrapper performed no format check on the prefix_len argument before passing it to C, allowing Perl's silent numification to coerce strings like 'abc' or Unicode digit sequences to zero. Independently, the C function signature declared prefix_len as 'int' (32-bit) rather than Perl's native IV type (platform-width, typically 64-bit), so values such as 2^32 were silently truncated to zero via integer overflow before being stored in the trie. The fix applied two coordinated corrections: a Perl-side regex guard requiring /^[0-9]+$/ before the value reaches C, and upgrading the C/XS declarations from 'int' to 'IV' to eliminate the truncation. A new test file (t/03-prefix-length.t) enumerates all malformed forms including 2^32 and 2^33 as regression tests.

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 (CPANSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 9.1 CRITICAL

Allow-list bypass grants universal access (I:H); deny-list poisoning blocks all traffic (A:H); no confidentiality impact.

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

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
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 08, 2026 - 19:23 NVD
7.5 (HIGH)
CVE Published
Sep 07, 2026 - 18:25 cve.org
HIGH 7.5
CVE Published
Sep 07, 2026 - 18:25 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Net::IP::LPM versions before 1.12 for Perl accept malformed prefix lengths.

Non-numeric and non-ASCII prefix lengths are accepted and treated as 0. Integers over 31 bits are silently truncated. A single malformed mask will poison the lookup table.

The result is that the lookup will silently succeed for every address. An allow-list will allow every address, and a deny-list will block every address.

Executive ViewAI

Why It Matters

A validation defect in Net::IP::LPM, a Perl module used for IP-based access control, silently inverts firewall and ACL rules-converting allow-lists to universally permissive and deny-lists to universally blocking. Organizations using this library for IP-based security controls face potential unauthorized access or lockout; no public exploit identified at time of analysis. A vendor patch is available.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Rare
niche CPAN module for IP prefix trie lookups
Data Quality
5 sources
Confidence: Medium

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

Priority Score

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

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