CVE-2026-126673: Data::Dump::Streamer versions before 3.00 for Perl allow code injection via unescaped Regexp patterns in _dump_qr
Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-12
Description
Data::Dump::Streamer versions before 3.00 for Perl allow code injection via unescaped Regexp patterns in _dump_qr. A Regexp's pattern is written into a qr literal without escaping "$" or "@", so "@{[ ... ]}" and "${\ ... }" in the pattern run as code when the dump is evaluated. An already escaped delimiter gets a second backslash, which leaves the delimiter bare and ends the qr literal early. An attacker who supplies a pattern that an application compiles, dumps and later restores with eval or do can run arbitrary Perl code.
Enclave's analysis
Data::Dump::Streamer before 3.00 doesn't escape regex patterns when it dumps them. A crafted pattern can run Perl code when the dump is later restored with eval or do. It only works if an app dumps attacker-supplied regexes and re-evaluates the dump. No exploit or exploitation is known. Upgrade to 3.00 or later, which is a C/XS rewrite. Otherwise, don't restore dumps containing untrusted regexes.
Fix
Upgrade Affected product to 3.00; Data-Dump-Streamer (Data::Dump::Streamer) to 3.00.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| Affected product | 0 before 3.00 | 3.00 |
| Data-Dump-Streamer (Data::Dump::Streamer) | all versions before 3.00 | 3.00 |