Intel

AIKIDO-2026-520986

uproot is vulnerable to Code Injection

CVE-2026-9147Published Jul 29, 2026
July 29, 2026

78

CVE Score

High

Code Injection

Are you affected? Scan for Free

TL;DR

Uproot dynamically generates and compiles Python reader classes from ROOT TStreamerInfo metadata found in a file. File-controlled streamer fields such as element names are interpolated into that generated source without safe quoting (no repr()/!r), and a dimension specification parsed from metadata is passed to eval. A crafted ROOT file can embed Python expressions in these metadata fields that are then executed in the context of the process opening the file, resulting in arbitrary code execution. The fix sanitizes interpolated identifiers used in generated code and replaces eval with ast.literal_eval when parsing dimension specifications.

How do I fix this?

Upgrade the uproot library to the patch version.

Who does this affect?

You are affected if you are running a version in the vulnerable range and your application opens or processes untrusted, externally supplied ROOT files.

Package

Versions

0.0.1 - 5.7.4

Fixed in 5.7.5

Background info

uproot is vulnerable to Code Injection in versions 0.0.1 - 5.7.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea