---
id: "CVE-2026-126673"
page: "https://infrastack.ai/live/CVE-2026-126673"
kind: "vulnerability"
aliases: ["CVE-2026-126673"]
title: "Perl Data::Dump::Streamer: crafted regex patterns run code on restore"
severity: "high"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["cpan", "data-dump-streamer", "package", "perl"]
not_affected_if: ["dump-output-never-evaluated", "no-untrusted-regexp-input"]
published_at: "2026-11-12T01:17:11+00:00"
first_seen_at: "2026-11-12T01:39:26+00:00"
updated_at: "2026-11-12T01:40:15+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126673", "first_seen_at": "2026-11-12T01:39:26+00:00"}]
exploit_sources: []
---

# Perl Data::Dump::Streamer: crafted regex patterns run code on restore

Link for people: https://infrastack.ai/live/CVE-2026-126673 (this .md is for agents)

Data::Dump::Streamer before 3.00 writes Regexp patterns into a qr literal without escaping "$" and "@", so embedded expressions run as Perl code. An attacker who controls a pattern that an application dumps and later restores with eval or do can execute arbitrary Perl code.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for `Data::Dump::Streamer` in your Perl dependencies, for example with `cpanm --info Data::Dump::Streamer` or `perl -MData::Dump::Streamer -e 'print $Data::Dump::Streamer::VERSION'`
- Search your code for calls that dump Regexp objects and then pass the output to `eval` or `do`

## Fix

- Data::Dump::Streamer: move to `3.00` or later (from the NVD description: versions before 3.00 are affected)

## Timeline

- 2026-11-12T01:39:26+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126673

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
