CVE-2026-126673 PUBLISHED

Data::Dump::Streamer versions before 3.00 for Perl allow code injection via unescaped Regexp patterns in _dump_qr

Assigner: CPANSec
Reserved: 11.11.2026 Published: 12.11.2026 Updated: 12.11.2026

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.

Product Status

Package Collection https://cpan.org/modules
Package Name Data-Dump-Streamer
Versions Default: unaffected
  • affected from 0 to 3.00 (excl.)

Workarounds

For deployments that cannot upgrade to 3.00, which requires Perl 5.18 and a C compiler, do not restore dumps that contain Regexps compiled from untrusted input.

Solutions

Upgrade to Data-Dump-Streamer 3.00 or later.

References

Problem Types

  • CWE-94 Improper Control of Generation of Code CWE