# CVE-2026-77781: Tie::Hash::Regex versions before 2.0.0 for Perl will throw an exception on unparseable lookup keys

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-08-21T23:57:02.918Z
- Modified: 2026-10-15T19:10:00.173Z
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Tie-Hash-Regex: before 2.0.0

## References

- <https://metacpan.org/release/DAVECROSS/Tie-Hash-Regex-2.0.0/source/Changes> (release-notes)
- <https://github.com/davorg-cpan/tie-hash-regex/commit/4239732cb76233543e2ded8ff5e0f238af152e0c.patch> (patch)
- <http://www.openwall.com/lists/oss-security/2026/08/22/2>

## Sources

- CVE List: [CVE-2026-77781](https://www.cve.org/CVERecord?id=CVE-2026-77781), CVE Terms of Use, modified 2026-08-27
- NVD: [CVE-2026-77781](https://nvd.nist.gov/vuln/detail/CVE-2026-77781), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-77781 · Whole record: https://cve.day/CVE-2026-77781.json · Rebuilt by cve.day 2026-11-25T22:59:34.855Z
