CVE-2026-56015 Details
Description
Net::IP::LPM versions before 1.11 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.
A heap out-of-bounds read vulnerability has been identified in Net::IP::LPM versions through 1.10 for Perl. The issue arises from an unbounded prefix length passed to the trie builder, addPrefixToTrie(), which does not verify the length against the address width. This flaw allows a prefix length exceeding the maximum limits for IPv4 or IPv6 to read past the end of the packed address, leading to a controlled out-of-bounds memory access. The vulnerability occurs during trie construction and can be detected using tools like AddressSanitizer or Valgrind, where it may cause the process to abort.
Users can apply a patch available on the CPAN Bug Tracker to address this vulnerability. This patch bounds the prefix length at the XS boundary, preventing the heap out-of-bounds read.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 3, 2026CISA-ADP
Assessed Jul 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/RRWO/Net-IP-LPM-1.11/changes | CPANSec | |
| https://rt.cpan.org/Ticket/Display.html?id=179856 | CPANSec | ExploitIssue TrackingTechnical DescriptionVendor |
| https://security.metacpan.org/patches/N/Net-IP-LPM/1.10/CVE-2026-56015-r2.patch | CPANSec | Broken LinkSource CodeVendor |
| http://www.openwall.com/lists/oss-security/2026/07/03/4 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Net::IP::LPM | <= 1.10 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 7, 2026 | CVE Modified | CPANSec |
| Sep 7, 2026 | CVE Modified | CVE |
| Jul 6, 2026 | CVE Modified | CISA-ADP |
| Jul 3, 2026 | CVE Modified | CVE |
| Jul 3, 2026 | New CVE Received | CPANSec |
Volerion