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
Net::Server versions through 2.018 for Perl admit unlisted clients when an allow rule contains top-level alternation, as allowdeny anchors only the first and last branch.
Each allow and deny rule is matched against the peer address, and against the peer hostname under reverselookups, 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 reverselookups, a hostname rule of the same shape also admits a PTR name such as a.example.attacker.test.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using Net::Server through version 2.018 are exposed if an allow rule contains an ungrouped top-level | alternation. The issue applies to address rules, and also to hostname rules when reverse_lookups is enabled; hostname-based exposure under double reverse_lookups can involve attacker-controlled PTR names.
What must an attacker be able to do?
An attacker only needs to connect from a peer address or, for affected hostname rules under double reverse_lookups, present a matching PTR hostname. The address or hostname does not need to be explicitly listed if it matches an incorrectly anchored alternation branch.
How can I identify affected rules?
Review allow rules for ungrouped alternation, such as 10\.0\.0\.1|10\.0\.0\.2. Such a rule can match values beginning with the first branch or ending with the last branch, rather than matching only either complete value.
What can be done before applying the available patch?
Avoid ungrouped | in allow rules. Group alternation so that anchoring applies to the entire expression, and review hostname allow rules especially where reverse_lookups or double reverse_lookups is enabled.