CVE-2026-49942: CWE-1289 Improper Validation of Unsafe Equivalence in Input in RRWO Net::CIDR::Set
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.
AI Analysis
Technical Summary
The vulnerability in Net::CIDR::Set (up to version 0.20) arises from improper validation of network masks. Specifically, the module fails to correctly handle Unicode digits such as Arabic-Indic numerals and non-digit characters in the mask portion, ignoring them instead of rejecting or properly parsing them. This can result in acceptance of network masks that represent larger networks than intended. Furthermore, leading zeros in masks are interpreted as decimal values rather than octal, which can lead to ambiguity and incorrect network mask interpretation. This issue is classified under CWE-1289 (Improper Validation of Unsafe Equivalence in Input).
Potential Impact
The improper validation of network masks may allow an attacker or user to specify larger network ranges than intended, potentially bypassing network restrictions or filters that rely on accurate CIDR mask validation. The confusion caused by leading zeros being treated as decimal rather than octal may also lead to misconfiguration or unintended network access. There are no known exploits in the wild reported for this vulnerability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should carefully validate network mask inputs externally before passing them to Net::CIDR::Set or avoid using affected versions if possible.
CVE-2026-49942: CWE-1289 Improper Validation of Unsafe Equivalence in Input in RRWO Net::CIDR::Set
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.
CVSS v3.1
Score 7.3high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Net::CIDR::Set (up to version 0.20) arises from improper validation of network masks. Specifically, the module fails to correctly handle Unicode digits such as Arabic-Indic numerals and non-digit characters in the mask portion, ignoring them instead of rejecting or properly parsing them. This can result in acceptance of network masks that represent larger networks than intended. Furthermore, leading zeros in masks are interpreted as decimal values rather than octal, which can lead to ambiguity and incorrect network mask interpretation. This issue is classified under CWE-1289 (Improper Validation of Unsafe Equivalence in Input).
Potential Impact
The improper validation of network masks may allow an attacker or user to specify larger network ranges than intended, potentially bypassing network restrictions or filters that rely on accurate CIDR mask validation. The confusion caused by leading zeros being treated as decimal rather than octal may also lead to misconfiguration or unintended network access. There are no known exploits in the wild reported for this vulnerability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should carefully validate network mask inputs externally before passing them to Net::CIDR::Set or avoid using affected versions if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-06-02T16:06:23.069Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a21ac6de29bf47b50b8bc28
Added to database: 6/4/2026, 4:48:45 PM
Last enriched: 6/4/2026, 5:03:44 PM
Last updated: 6/4/2026, 6:51:18 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.