Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 87%

CVE-2026-9147: Improper Control of Generation of Code ('Code Injection') in scikit-hep uproot

0
High
VulnerabilityCVE-2026-9147cvecve-2026-9147cwe-94gcve
Published: 07/18/2026 (07/18/2026, 12:46:26 UTC)
Source: CVE Database V5
Vendor/Project: scikit-hep
Product: uproot

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.

CVSS v4.0

Score 8.5high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 17:28:49 UTC

Technical Analysis

The vulnerability in scikit-hep uproot involves improper control of code generation (CWE-94). uproot generates Python class source code dynamically from ROOT TStreamerInfo metadata fields, such as streamer element names, without applying safe quoting mechanisms like repr() or the !r format specifier. This allows an attacker who can provide a maliciously crafted ROOT file to inject Python expressions that break the intended code structure. When uproot compiles and executes this generated code, the injected expressions are evaluated, resulting in arbitrary Python code execution within the application context.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary Python code in the context of the process that opens or processes the attacker-controlled ROOT file. This can lead to full compromise of the affected application environment, depending on the privileges of the process running uproot.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted or attacker-controlled ROOT files with affected versions of uproot.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-05-20T21:05:14.933Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a5b7b8ce0f76a4092ef4381

Added to database: 07/18/2026, 13:11:40 UTC

Last enriched: 08/11/2026, 17:28:49 UTC

Last updated: 08/31/2026, 22:52:14 UTC

Views: 168

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses