HarborGuardharborguardDatabase
Back to search
HIGHCVE-2026-49942Published Modified CNA CPANSec

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

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.

Metrics

CVSS v3.1
7.3
Severity
HIGH
Fixed in
Affected Products
1

Get notified

Email me when this CVE is updated: new fix versions, severity changes, or any record change.

HarborGuard Analysis

Synopsis

An input-validation flaw in Net::CIDR::Set (versions through 0.20 for Perl) allows malformed network mask values, including Unicode digits and leading zeros, to be silently accepted and misinterpreted. The vulnerability is reachable over the network with no authentication required, meaning any unauthenticated caller who can supply CIDR input to an application using this library can trigger the behavior. Successful exploitation lets an attacker bypass IP-allowlist or blocklist logic, read data or reach services that should have been excluded, tamper with access decisions, and cause inconsistent routing behavior. HarborGuard is tracking the advisory for patch availability, as no fix version has been published upstream.

HarborGuard Coverage

Detection

Detection of CVE-2026-49942 is available across every HarborGuard environment: the CVE is ingested from upstream feeds (including CPANSec advisories) within minutes of publication and matched against all customer images, including custom-built images that bundle Net::CIDR::Set as a dependency.

Available
Triage

HarborGuard scores this CVE at 7.3 HIGH (CVSS v3.1) and can weight that score against each customer environment's compliance policy to determine urgency and route findings to the appropriate team inbox within the customer org.

Available
Patch

Because no upstream fix has been published, HarborGuard re-checks the advisory on every ingest cycle and will make a patched-image rebuild available the moment CPANSec or the module author ships a corrected release. In the meantime, compensating controls such as network-policy isolation of services that accept CIDR input are surfaced as recommended mitigations within the platform.

Pending upstream

Exploit Conditions

  • Network reachabilityRequired

    The vulnerable library is exposed over the network; an attacker must be able to send crafted CIDR input to the affected service remotely.

  • AuthenticationNot required

    No credentials or prior account are needed to supply malformed mask values to the affected service.

  • Victim interactionNot required

    The flaw is triggered by the attacker submitting crafted input directly; no user action or social engineering is involved.

  • Attack complexityDetail

    Exploitation is reliable and condition-free; the attacker simply includes Unicode digits or leading zeros in the mask portion of a CIDR string.

Blast Radius

  • An attacker can bypass IP-based access controls, gaining read access to data or services that should have been restricted by a blocklist or allowlist.
  • An attacker can cause the application to accept network ranges larger than intended, allowing unauthorized hosts to pass firewall or routing rules.
  • An attacker can introduce confusion between decimal and octal interpretations of leading-zero masks, silently corrupting access-control decisions.
  • The mismatch between accepted and intended network ranges can degrade service reliability or produce inconsistent behavior across deployments.

How HarborGuard Handles This

Available on HarborGuard: because no upstream fix exists for CVE-2026-49942, the platform monitors the CPANSec advisory on every ingest cycle and will automatically make a patched-image rebuild available the moment a corrected version of Net::CIDR::Set is released. Until then, HarborGuard surfaces the finding with a HIGH severity rating in every affected environment and recommends the following compensating controls: apply network-policy rules to isolate services that accept CIDR input from untrusted callers; add an application-layer pre-validation step that rejects mask values containing non-ASCII characters or leading zeros before passing them to Net::CIDR::Set; and consider feature-flag gating on any code path that dynamically evaluates user-supplied CIDR strings. For customers with auto-remediation enabled, a rebuild and regression run will be triggered automatically once the upstream patch is published, followed by a PR opened against affected workloads.

See how HarborGuard automates this
Affected packages
  • RRWO / Net::CIDR::Set
    ≤ 0.20
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L