CVE-2026-77781Tie::Hash::Regex versions before 2.0.0 for Perl will throw an exception on unparseable…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libtie-hash-regex-perl | Fix pending | UBUNTU-CVE-2026-77781 | |
| Ubuntu 26.04 | libtie-hash-regex-perl | Under investigation | UBUNTU-CVE-2026-77781 | |
| Ubuntu 24.04 | libtie-hash-regex-perl | Under investigation | UBUNTU-CVE-2026-77781 | |
| Ubuntu 22.04 | libtie-hash-regex-perl | Under investigation | UBUNTU-CVE-2026-77781 | |
| Ubuntu 20.04 | libtie-hash-regex-perl | Fix pending | UBUNTU-CVE-2026-77781 | |
| Ubuntu 18.04 | libtie-hash-regex-perl | Fix pending | UBUNTU-CVE-2026-77781 | |
| Ubuntu 16.04 | libtie-hash-regex-perl | Fix pending | UBUNTU-CVE-2026-77781 | |
| Debian 14 | libtie-hash-regex-perl | Fixed | 1.14-3 | DEBIAN-CVE-2026-77781 |
| Debian 13 | libtie-hash-regex-perl | Fixed | 1.14-3~deb13u1 | DEBIAN-CVE-2026-77781 |
| Debian 12 | libtie-hash-regex-perl | Fix pending | DEBIAN-CVE-2026-77781 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Tie-Hash-Regex: affected: before 2.0.0; fixed in
2.0.0
Solution: Upgrade to Tie::Hash::Regex version 2.0.0 or later.
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.
Vendor advisories:
- https://metacpan.org/release/DAVECROSS/Tie-Hash-Regex-2.0.0/source/Changes (release-notes)
- https://github.com/davorg-cpan/tie-hash-regex/commit/4239732cb76233543e2ded8ff5e0f238af15… (patch)
References
- https://metacpan.org/release/DAVECROSS/Tie-Hash-Regex-2.0.0/source/Changes
- https://github.com/davorg-cpan/tie-hash-regex/commit/4239732cb76233543e2ded8ff5e0f238af152e0c.patch
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.