Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply malformed CIDR prefix via external input
-
DeliveryApplication calls Net::IP::LPM::add() without validation
-
ExploitPerl numifies or C truncates prefix_len to 0
-
Execution/0 default route inserted into trie
-
PersistAll subsequent lookups match every address
-
ImpactIP-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Allow-list bypass grants universal access (I:H); deny-list poisoning blocks all traffic (A:H); no confidentiality impact.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
EUVD-2026-72526
GHSA-456r-qjr2-xph9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB