CVE-2026-9147
uproot 5.7.4 and prior Code Injection via TStreamerInfo Metadata
- State
- Published
- Severity
- 8.5 High
- Published
- Jul 18, 2026
- Updated
- Aug 28, 2026
- Reserved
- May 20, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.5 High | 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 | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
uprootscikit-hep |
|
References
- Researcher Disclosuretechnical-descriptionexploit
- GitHub Security Advisory (GHSA-6946-mq52-g438)vendor-advisory
- Patch Commitpatch
- Productproduct
- https://www.vulncheck.com/advisories/uproot-and-before-code-injection-via-tstreamerinfo-metadatathird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.