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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Tie-Hash-Regex | < 2.0.0 | 2.0.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libtie-hash-regex-perl | 1.14-3 | — |
| Debian 13 | libtie-hash-regex-perl | No fix yet | — |
| Debian 12 | libtie-hash-regex-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libtie-hash-regex-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libtie-hash-regex-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libtie-hash-regex-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libtie-hash-regex-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libtie-hash-regex-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libtie-hash-regex-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libtie-hash-regex-perl | No fix yet | — |