# CVE-2025-40911: Net::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

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2025-05-27T21:17:42.238Z
- Modified: 2026-06-17T09:22:16.670Z
- Weaknesses: CWE-1287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Net-CIDR-Set: from 0.10 up to 0.13

## References

- <https://metacpan.org/release/RRWO/Net-CIDR-Set-0.14/changes> (release-notes)
- <https://github.com/robrwo/perl-Net-CIDR-Set/commit/be7d91e8446ad8013b08b4be313d666dab003a8a.patch> (patch)
- <https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/> (related)

## Sources

- CVE List: [CVE-2025-40911](https://www.cve.org/CVERecord?id=CVE-2025-40911), CVE Terms of Use, modified 2025-05-28
- NVD: [CVE-2025-40911](https://nvd.nist.gov/vuln/detail/CVE-2025-40911), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-40911 · Whole record: https://cve.day/CVE-2025-40911.json · Rebuilt by cve.day 2026-11-25T22:58:58.525Z
