CPANSA-Tie-Hash-Regex-2026-77781: Tie-Hash-Regex vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-08-22T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-08-22T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 7.5 | Severity | High |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2026-77781
Vulnerability DescriptionTie::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.
| Weakness | CWE-248 : Uncaught Exception |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Tie-Hash-Regex less than 2.0.0 |
|
Fixed
- Tie-Hash-Regex greater than or equal 2.0.0
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Tie-Hash-Regex-2026-77781 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-tie-hash-regex-2026-77781.json - https://github.com/davorg-cpan/tie-hash-regex/commit/4239732cb76233543e2ded8ff5e0f238af152e0c.patch external
https://github.com/davorg-cpan/tie-hash-regex/commit/4239732cb76233543e2ded8ff5e0f238af152e0c.patch - https://metacpan.org/release/DAVECROSS/Tie-Hash-Regex-2.0.0/source/Changes external
https://metacpan.org/release/DAVECROSS/Tie-Hash-Regex-2.0.0/source/Changes - http://www.openwall.com/lists/oss-security/2026/08/22/2 external
http://www.openwall.com/lists/oss-security/2026/08/22/2 - CVE-2026-77781 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-77781
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Sat Aug 22 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/