Vulnerability · Published May 27, 2025 · Assigned by CPANSec

CVE-2025-40911Net::CIDR::Set versions 0.10 through 0.13 for Perl does not properly consider leading zero characters in IP CIDR address strings, which could allow attackers to bypass access control that is based on IP addresses

Medium 6.5

In plain English

A medium-severity security flaw in Net::CIDR::Set from RRWO. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.4%top 68.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Net::CIDR::Set versions 0.10 through 0.13 for Perl does not properly handle leading zero characters in IP CIDR address strings, which could allow attackers to bypass access control that is based on IP addresses. Leading zeros are used to indicate octal numbers, which can confuse users who are intentionally using octal notation, as well as users who believe they are using decimal notation. Net::CIDR::Set used code from Net::CIDR::Lite, which had a similar vulnerability CVE-2021-47154.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libnet-cidr-set-perlno fix listedDEBIAN-CVE-2025-40911
Debian:13libnet-cidr-set-perl0.15-1DEBIAN-CVE-2025-40911
Debian:14libnet-cidr-set-perl0.15-1DEBIAN-CVE-2025-40911
Ubuntu:22.04:LTSlibnet-cidr-set-perlno fix listedUBUNTU-CVE-2025-40911
Ubuntu:24.04:LTSlibnet-cidr-set-perlno fix listedUBUNTU-CVE-2025-40911
Ubuntu:25.10libnet-cidr-set-perlno fix listedUBUNTU-CVE-2025-40911

Affected products (as reported)

VendorProductVersions
RRWO Net::CIDR::Set 0.10 – through 0.13

Weakness: CWE-1287 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References