CVE-2026-31226: TinyZero - Command Injection
- Cve: CVE-2026-31226
- Name: TinyZero - Command Injection
- Description: The TinyZero project thru commit 6652a63c57fa7e5ccde3fc9c598c7176ff15b839 (2025-58-24) contains a critical command injection vulnerability (CWE-78) in its HDFS file operation utilities. The vulnerability arises from the unsafe construction and execution of shell commands via os.system() without proper input sanitization or escaping. User-controlled input (such as file paths) is directly interpolated into shell command strings using f-strings within the _copy() function. An attacker can inject arbitrary OS commands by supplying a specially crafted path parameter through the Hydra configuration framework. This leads to remote code execution with the privileges of the user running the TinyZero training process.
- Impact: Remote attackers can execute arbitrary OS commands with the privileges of the TinyZero training process user.
- Remediation: Update to a version that properly sanitizes and escapes inputs in the _copy() function or apply input validation and escaping before shell command execution.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirements: Attacker must supply crafted path parameter via Hydra configuration framework
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01158
- Epss percentile: 0.67737
- Assignee: [email protected]
- Published at: 2026-05-12T16:16:14Z
- Age in days: 196
- Modified at: 2026-06-17T10:33:28Z
- References total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31226
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/Jiayi-Pan/TinyZero | nvd | |
| https://www.notion.so/CVE-2026-31226-35d1e139318881d19af5d63095c74579 | nvd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts