CVE-2026-77781: CWE-248 Uncaught Exception
Tie::Hash::Regex versions before 2.0.0 for Perl contain a vulnerability where malformed regular expression keys cause the FETCH, EXISTS, and DELETE methods to throw uncaught exceptions. This occurs because these methods compile the lookup key as a regex without proper error handling, causing the application to die if the key is invalid. This affects applications that use externally supplied strings as keys in tied hashes.
AI Analysis
Technical Summary
The Tie::Hash::Regex Perl module versions prior to 2.0.0 have a vulnerability (CWE-248) where the FETCH, EXISTS, and DELETE methods throw exceptions on malformed regular expression keys. These methods attempt to compile the caller's key using a bare qr// operator without an eval guard, so if the key is not a valid regex pattern (e.g., contains an unmatched bracket), the operation dies. This can cause applications that look up externally supplied strings in such tied hashes to terminate unexpectedly due to uncaught exceptions.
Potential Impact
Applications using Tie::Hash::Regex versions before 2.0.0 that perform lookups with externally supplied strings may crash or terminate unexpectedly when those strings are invalid regular expressions. This can lead to denial of service conditions in affected applications.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using externally supplied strings as keys in Tie::Hash::Regex tied hashes or implement input validation to ensure keys are valid regular expressions before lookup.
CVE-2026-77781: CWE-248 Uncaught Exception
Description
Tie::Hash::Regex versions before 2.0.0 for Perl contain a vulnerability where malformed regular expression keys cause the FETCH, EXISTS, and DELETE methods to throw uncaught exceptions. This occurs because these methods compile the lookup key as a regex without proper error handling, causing the application to die if the key is invalid. This affects applications that use externally supplied strings as keys in tied hashes.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Tie::Hash::Regex Perl module versions prior to 2.0.0 have a vulnerability (CWE-248) where the FETCH, EXISTS, and DELETE methods throw exceptions on malformed regular expression keys. These methods attempt to compile the caller's key using a bare qr// operator without an eval guard, so if the key is not a valid regex pattern (e.g., contains an unmatched bracket), the operation dies. This can cause applications that look up externally supplied strings in such tied hashes to terminate unexpectedly due to uncaught exceptions.
Potential Impact
Applications using Tie::Hash::Regex versions before 2.0.0 that perform lookups with externally supplied strings may crash or terminate unexpectedly when those strings are invalid regular expressions. This can lead to denial of service conditions in affected applications.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using externally supplied strings as keys in Tie::Hash::Regex tied hashes or implement input validation to ensure keys are valid regular expressions before lookup.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-08-21T11:41:39.920Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a88e84dacd9273b49ea557b
Added to database: 08/22/2026, 00:07:41 UTC
Last enriched: 08/22/2026, 00:22:03 UTC
Last updated: 08/22/2026, 00:22:03 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.