CVEfocus › CVE database › CVE-2026-77781

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

CVSS 7.5 HighEPSS 0.6% (higher than 43% of CVEs)Published 2026-08-21Updated 2026-08-27Assigner: CPANSec

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.

CWE-248

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

2Fixed
5Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libtie-hash-regex-perlFix pendingUBUNTU-CVE-2026-77781
Ubuntu 26.04libtie-hash-regex-perlUnder investigationUBUNTU-CVE-2026-77781
Ubuntu 24.04libtie-hash-regex-perlUnder investigationUBUNTU-CVE-2026-77781
Ubuntu 22.04libtie-hash-regex-perlUnder investigationUBUNTU-CVE-2026-77781
Ubuntu 20.04libtie-hash-regex-perlFix pendingUBUNTU-CVE-2026-77781
Ubuntu 18.04libtie-hash-regex-perlFix pendingUBUNTU-CVE-2026-77781
Ubuntu 16.04libtie-hash-regex-perlFix pendingUBUNTU-CVE-2026-77781
Debian 14libtie-hash-regex-perlFixed1.14-3DEBIAN-CVE-2026-77781
Debian 13libtie-hash-regex-perlFixed1.14-3~deb13u1DEBIAN-CVE-2026-77781
Debian 12libtie-hash-regex-perlFix pendingDEBIAN-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.

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:

References

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.