ZeroHour
oss-securitypublished ()ingested

CVE-2026-86287: Net::IP::LPM versions before 1.12 for Perl accept malformed prefix lengths

AI summary · glm-5.3-flash

CVE-2026-86287: Net::IP::LPM Perl library before 1.12 accepts malformed IP prefix lengths, risking incorrect longest-prefix-match results.

Net::IP::LPM versions before 1.12 for Perl accept malformed prefix lengths, per an oss-security disclosure posted September 7, 2026. The lax input validation in this longest-prefix-match library could produce incorrect matching behavior. The fix is available in version 1.12 on CPAN.

  • Fixed in Net::IP::LPM 1.12, available on CPAN
  • Malformed prefix lengths accepted, risking incorrect longest-prefix-match behavior
  • Disclosed on the oss-security mailing list on September 7, 2026
ProductsNet::IP::LPM
OrganizationsCPAN

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2026-86287
Improper Input Validation in Net::IP::LPM Perl Module Lets Bad Masks Poison Lookups

Net::IP::LPM, a Perl module for longest-prefix-match IP lookups in versions before 1.12, improperly validates prefix lengths (CWE-1287): non-numeric and non-ASCII values are accepted and treated as 0, and prefix-length integers over 31 bits are silently truncated. A single malformed prefix length fed to the module — from untrusted input, configuration, or another data source — poisons the shared lookup table so that every subsequent lookup silently succeeds. The practical result is that allow-lists permit every address (a control bypass) and deny-lists block every address (a denial of service), consistent with the CVSS 7.5 (High) score that rates only availability impact. Any Perl application or service using Net::IP::LPM for access-control or routing-style decisions is affected, especially where prefix lengths are not strictly validated before insertion. No public proof-of-concept is known, the flaw is not in CISA KEV, and EPSS places the 30-day exploitation probability at 0.4%, so no exploitation is currently known.

Do: Upgrade Net::IP::LPM to version 1.12 or later, which properly validates prefix lengths. Audit code that passes prefix lengths from untrusted input, configuration files, or external data into the module and validate each as a clean integer in the valid range before insertion; rebuild or reload lookup tables after upgrading to clear any already-poisoned entries. Until patched, treat allow-list and deny-list decisions built on this module as unreliable wherever a malformed mask could have been inserted.

7.5<1%
  • CPAN (Perl) Net::IP::LPM All versions before 1.12
nicheunknown; likely low thousands of Perl deployments or fewer
Full article

Posted by Robert Rothenberg on Sep 07 ======================================================================== https://metacpan.org/dist/Net-IP-LPM VCS Repo: ...

This source does not provide full text. Read it at seclists.org.