# CVE-2026-49942: Net::CIDR::Set versions through 0.20 for Perl did not validate network masks

- Severity: High 7.3 (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:L`
- 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.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-06-04T16:07:42.179Z
- Modified: 2026-07-22T20:10:00.127Z
- Weaknesses: CWE-1289
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Net::CIDR::Set versions through 0.20 for Perl did not validate network masks.

The mask portion of a network mask could contain Unicode digits such as the Arabic-Indic One (U+0661), or non-digits, which were ignored.   This could allow network masks to accept larger networks.

Leading zeros were also accepted, but treated as decimal instead of octal.  This could lead to confusion about what networks are acceptable.

(As written by CVE List.)

## Affected

- Net-CIDR-Set: up to 0.20
- rrwo net::cidr::set: before 0.21

## References

- <https://metacpan.org/release/RRWO/Net-CIDR-Set-0.21/changes> (release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-40911> (related, third-party-advisory, us-government-resource)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45191> (related, third-party-advisory, us-government-resource)

## Sources

- CVE List: [CVE-2026-49942](https://www.cve.org/CVERecord?id=CVE-2026-49942), CVE Terms of Use, modified 2026-06-04
- NVD: [CVE-2026-49942](https://nvd.nist.gov/vuln/detail/CVE-2026-49942), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-49942 · Whole record: https://cve.day/CVE-2026-49942.json · Rebuilt by cve.day 2026-11-25T22:59:23.715Z
