CVE-2026-31226 Command injection in n/a
Attackers can execute arbitrary OS commands via crafted file paths in TinyZero's HDFS utilities, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-31226?
CVE-2026-31226 is a critical command injection vulnerability in n/a, published on 12 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2026-31226?
How do I fix CVE-2026-31226?
No fix has been published for CVE-2026-31226 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-31226 being exploited?
There is no known exploitation of CVE-2026-31226 in the wild and no public exploit code.
Sources
Also known as GHSA-q43r-5xx6-v6jq.