Net::CIDR::Set Leading Zero Vulnerability in IP CIDR Address Handling

Vulnerability

A vulnerability exists in Net::CIDR::Set versions 0.10 through 0.13 for Perl, where the module improperly processes leading zeroes in IP CIDR address strings. This flaw can enable attackers to circumvent access controls based on IP addresses. The misinterpretation of leading zeros, which denote octal values, could confuse users intending to use decimal notation. Net::CIDR::Set incorporates code from Net::CIDR::Lite, which is affected by a similar vulnerability (CVE-2021-47154).

Impact

Exploitation of this vulnerability could lead to unauthorized access by bypassing IP-based access controls.

Reproduction

To reproduce this vulnerability, use Net::CIDR::Set version 0.10 through 0.13. Add an IP address with a leading zero, such as '010.0.0.1', to a CIDR set. The module will misinterpret the address, treating it as '8.0.0.1' due to the octal notation, potentially allowing access control bypass.

Remediation

Users can upgrade to Net::CIDR::Set version 0.14 or later, which addresses this vulnerability by disallowing IPv4 addresses with leading zeros in the quads.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.4
remediation
7.7
relevance
0.0
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.