Net::CIDR::Set versions through 0.20 for Perl did not validate IP addresses
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-49941
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 23:36 UTC · Revision 1
Source evidence
Net::CIDR::Set versions through 0.20 for Perl did not validate IP addresses
core-osv · Original sourcePublished 4 Jun 2026, 16:07 UTC
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.
osv:CVE-2026-49941
Complete source record
{
"id": "0e07a3d26776db54acd3d6a0af7a5406661d018c4c47aecba12cb6b8240b8f02",
"url": "https://osv.dev/vulnerability/CVE-2026-49941",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Net::CIDR::Set versions through 0.20 for Perl did not validate IP addresses",
"summary": "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.",
"evidence": "osv:CVE-2026-49941",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-49941",
"aliases": [
"CVE-2026-49941"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/robrwo/perl-net-cidr-set",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c61d2f359f6b3a04af11bb64ee4c6d8d1c04504d"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.20"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:rrwo:net\\:\\:cidr\\:\\:set:*:*:*:*:*:perl:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.21"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"0.20",
"0.19",
"0.18",
"0.17",
"0.16",
"v0.15",
"v0.14",
"v0.13"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49941.json"
}
}
],
"modified": "2026-10-28T02:30:32.202847409Z",
"provider": "osv",
"references": [
"https://cpan.org/modules",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49941.json",
"https://metacpan.org/release/RRWO/Net-CIDR-Set-0.21/changes",
"https://nvd.nist.gov/vuln/detail/CVE-2026-49941",
"https://github.com/robrwo/perl-Net-CIDR-Set"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1287",
"CWE-674"
],
"cna_assigner": "CPANSec",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49941.json"
}
},
"related_cves": [
{
"value": "CVE-2026-49941",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499268,
"published_at": "2026-06-04T16:07:20.739+00:00"
}