Description
Tie::Hash::Regex versions before 2.0.0 for Perl will throw an exception on unparseable lookup keys.

The FETCH, EXISTS and DELETE methods throw an exception when on malformed regular expressions.

Each method falls back to a regex match when the key is not already stored in the hash, compiling the caller's key with a bare qr// and no eval guard. A key that is not a valid regular expression pattern, such as a single unmatched bracket, dies.

An application that looks up externally supplied strings in a tied hash will die on an invalid key.
Published: 2026-08-21
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Tie::Hash::Regex versions prior to 2.0.0 will raise an exception when a lookup key cannot be parsed as a valid regular expression. This flaw is a CWE‑248 exception handling weakness. When an application performs FETCH, EXISTS, or DELETE on a tied hash with an externally supplied key that is not a valid regex pattern, the module compiles the key with a bare qr// without any exception guard, causing the Perl interpreter to die. The resulting crash truncates the application’s execution and can result in a denial of service.

Affected Systems

This issue affects any installation that uses the Tie::Hash::Regex Perl module of version 1.x or earlier. The module is distributed by the DAVECROSS project and is used in Perl environments where arbitrary strings are queried against a tied hash.

Risk and Exploitability

The vulnerability is exploitable if an attacker can provide or influence the key used in a hash lookup. Based on the description, it is inferred that a remote attacker could inject malformed regex strings into user inputs that are subsequently used as hash keys, potentially triggering a denial of service. EPSS data is not available; KEV is not listed in the CISA KEV catalog; however, the lack of built‑in input validation and the severity of an application crash indicate a high risk for systems that rely on this module.

Generated by OpenCVE AI on August 22, 2026 at 02:49 UTC.

Remediation

Vendor Solution

Upgrade to Tie::Hash::Regex version 2.0.0 or later.


Vendor Workaround

For deployments that cannot be upgraded, ensure that calls to check the existence of keys, fetch values from keys or delete keys are wrapped in an eval block.


OpenCVE Recommended Actions

  • Upgrade Tie::Hash::Regex to version 2.0.0 or later.
  • If an upgrade is not possible, wrap any call to FETCH, EXISTS or DELETE that uses externally supplied keys in an eval block to catch exceptions.
  • Validate or sanitize lookup keys before using them to ensure they are valid regular expressions.

Generated by OpenCVE AI on August 22, 2026 at 02:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Description Tie::Hash::Regex versions before 2.0.0 for Perl will throw an exception on unparseable lookup keys. The FETCH, EXISTS and DELETE methods throw an exception when on malformed regular expressions. Each method falls back to a regex match when the key is not already stored in the hash, compiling the caller's key with a bare qr// and no eval guard. A key that is not a valid regular expression pattern, such as a single unmatched bracket, dies. An application that looks up externally supplied strings in a tied hash will die on an invalid key.
Title Tie::Hash::Regex versions before 2.0.0 for Perl will throw an exception on unparseable lookup keys
Weaknesses CWE-248
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-08-21T23:57:02.918Z

Reserved: 2026-08-21T11:41:39.920Z

Link: CVE-2026-77781

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T00:16:46.710

Modified: 2026-08-22T00:16:46.710

Link: CVE-2026-77781

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T03:00:12Z

Weaknesses