CVE-2026-124294

Net::Server versions through 2.018 for Perl admit unlisted clients when an allow rule contains top-level alternation, as allow_deny anchors only the first and last branch

Published Nov 29, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
Net::Server versions through 2.018 for Perl admit unlisted clients when an allow rule contains top-level alternation, as allow_deny anchors only the first and last branch.

Each allow and deny rule is matched against the peer address, and against the peer hostname under reverse_lookups, as /^$_$/. In a rule with an ungrouped |, the ^ binds to the first branch and the $ to the last, so the rule 10\.0\.0\.1|10\.0\.0\.2 matches any address that starts with 10.0.0.1 or ends with 10.0.0.2.

A remote client at an address the operator never listed, such as 10.0.0.15 or 110.0.0.2, passes the allow check. Under double reverse_lookups, a hostname rule of the same shape also admits a PTR name such as a.example.attacker.test.

Analysis

AI-generated

Technical impact

Net::Server for Perl fails to enforce allow rules that contain top-level alternation. The rule anchors apply only to the first and last options, so a pattern such as 10\.0\.0\.1|10\.0\.0\.2 matches any address that starts with 10.0.0.1 or ends with 10.0.0.2. This flaw lets clients whose addresses were not explicitly listed satisfy the allow check and connect to the service, effectively bypassing intended network-level access controls and exposing the application to unauthorized use of privileged functions and data.

Affected Systems

All installations of Net::Server for Perl up to and including version 2.018 are affected. Any Perl application that relies on this library, such as web servers, API services or custom network daemons, is at risk. Versions beyond 2.018 are not impacted.

Risk and Exploitability

The vulnerability allows an unauthenticated remote host that matches a malformed allow rule to connect to the service as an authorized client. No local code execution or elevated privilege escalation is required on the host; the attack simply bypasses network access controls. No public exploit has been reported, the EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, yet its high impact stems from granting unrestricted access to the protected application.

Remediation

Vendor Workaround

No fixed release is available. Apply the patch. For deployments that cannot apply the patch, wrap each allow rule that contains | in a group, such as (?:10\.0\.0\.1|10\.0\.0\.2), or use cidr_allow for address rules.


OpenCVE Recommended Actions

  • Apply the vendor patch available at https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124294-r1.patch
  • If the patch cannot be applied, wrap each allow rule containing ungrouped alternation in a non‑capturing group, for example (?:10\.0\.0\.1|10\.0\.0\.2), so that the pattern anchors correctly.
  • Use the cidr_allow helper for address based allow rules instead of raw regexes to avoid this boundary issue.

Generated by OpenCVE AI on November 30, 2026 at 00:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Net::Server versions through 2.018 for Perl admit unlisted clients when an allow rule contains top-level alternation, as allow_deny anchors only the first and last branch. Each allow and deny rule is matched against the peer address, and against the peer hostname under reverse_lookups, as /^$_$/. In a rule with an ungrouped |, the ^ binds to the first branch and the $ to the last, so the rule 10\.0\.0\.1|10\.0\.0\.2 matches any address that starts with 10.0.0.1 or ends with 10.0.0.2. A remote client at an address the operator never listed, such as 10.0.0.15 or 110.0.0.2, passes the allow check. Under double reverse_lookups, a hostname rule of the same shape also admits a PTR name such as a.example.attacker.test.
Title Net::Server versions through 2.018 for Perl admit unlisted clients when an allow rule contains top-level alternation, as allow_deny anchors only the first and last branch
Weaknesses CWE-777
References

Subscriptions

No data.

Weaknesses
  • CWE-777

    Regular Expression without Anchors

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 29, 2026, 11:29 PM
Reserved
Nov 7, 2026, 11:59 AM
Status
Received
Published
Nov 30, 2026, 12:17 AM
Modified
Nov 30, 2026, 12:17 AM