Net::IP::LPM Leading Zero Vulnerability in IP CIDR Parsing Allows Access Control Bypass

Vulnerability

A vulnerability exists in Net::IP::LPM version 1.10 for Perl, where the module improperly handles leading zeroes in IP CIDR notation. This mismanagement can enable attackers to circumvent access controls that rely on IP addresses. The issue arises because leading zeroes are interpreted as octal values, potentially misleading users who intend to use decimal notation. The vulnerability could be exploited by crafting IP addresses with leading zeroes to manipulate access control mechanisms.

Impact

Exploitation of this vulnerability could lead to unauthorized access by bypassing IP-based access controls, allowing attackers to gain access to resources or functionalities that should be restricted.

Reproduction

To reproduce this vulnerability, use Net::IP::LPM version 1.10 and input an IP address in CIDR format with a leading zero, such as '010.0.0.1'. The module will misinterpret the address, treating it as '8.0.0.1' instead of '10.0.0.1'. This misinterpretation can be verified by using the 'ping' command, which will show the address as '8.0.0.1'.

Remediation

Net::IP::LPM version 1.10 has been patched to address this vulnerability. Users should upgrade to this version.

Added: Sep 1, 2025, 7:22 PM
Updated: Sep 1, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.4
remediation
0.0
relevance
0.2
threat
4.8
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.