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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libnet-cidr-set-perl | no fix listed | DEBIAN-CVE-2025-40911 |
| Debian:13 | libnet-cidr-set-perl | 0.15-1 | DEBIAN-CVE-2025-40911 |
| Debian:14 | libnet-cidr-set-perl | 0.15-1 | DEBIAN-CVE-2025-40911 |
| Ubuntu:22.04:LTS | libnet-cidr-set-perl | no fix listed | UBUNTU-CVE-2025-40911 |
| Ubuntu:24.04:LTS | libnet-cidr-set-perl | no fix listed | UBUNTU-CVE-2025-40911 |
| Ubuntu:25.10 | libnet-cidr-set-perl | no fix listed | UBUNTU-CVE-2025-40911 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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