CVE-2026-9147 uproot 5.7.4 and prior Code Injection via TStreamerInfo Metadata

High 8.5 Published Updated

Attackers can execute arbitrary Python code by crafting ROOT files with malicious streamer metadata processed by the uproot library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-9147?

CVE-2026-9147 is a high-severity code injection vulnerability in scikit-hep uproot, published on 18 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

uproot dynamically generates Python class source code from ROOT TStreamerInfo records in a file and compiles it at runtime. Some file-controlled streamer metadata fields (for example, streamer element names) are interpolated into the generated Python source without safe quoting via repr() or the !r format specifier. An attacker who can supply a crafted ROOT file can place Python expression-breaking content into a streamer metadata field. When uproot generates and invokes the corresponding reader method, the injected Python expression is evaluated in the context of the process opening the file, resulting in arbitrary Python code execution in applications that open or process attacker-controlled ROOT files with affected uproot code paths.

Weakness: CWE-94

Which versions are affected by CVE-2026-9147?

How do I fix CVE-2026-9147?

No fix has been published for CVE-2026-9147 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-9147 being exploited?

There is no known exploitation of CVE-2026-9147 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-6946-mq52-g438, GHSA-98vv-9pqj-g87v.

Is CVE-2026-9147 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free