Home

Description

Net::CIDR::Set versions through 0.20 for Perl did not validate IP addresses. The add method called the _encode method to parse addresses. If the addresses did not look like netmasks or network ranges, then they were assumed to single IP addresses and passed back to itself as a 32-bit or 128-bit netmask. If the argument was not a well-formed IP address, then this would lead to indefinite recursion. An attacker could use this to cause a denial of service.

PUBLISHED Reserved 2026-06-02 | Published 2026-06-04 | Updated 2026-06-04 | Assigner CPANSec

Problem types

CWE-1287 Improper Validation of Specified Type of Input

CWE-674 Uncontrolled Recursion

Product status

Default status
unaffected

Any version
affected

Timeline

2026-05-13:Issue reported to CPANSec
2026-06-02:Net::CIDR::Set version 0.21 released with fix

References

www.openwall.com/lists/oss-security/2026/06/04/11

metacpan.org/release/RRWO/Net-CIDR-Set-0.21/changes release-notes

cve.org (CVE-2026-49941)

nvd.nist.gov (CVE-2026-49941)

Download JSON