CVE-2026-9147: Improper Control of Generation of Code ('Code Injection') in scikit-hep uproot
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.
AI Analysis
Technical Summary
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.
CVE-2026-9147: Improper Control of Generation of Code ('Code Injection') in scikit-hep 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
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.