Vulnerability 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.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://github.com/Jiayi-Pan/TinyZero
- https://www.notion.so/CVE-2026-31226-35d1e139318881d19af5d63095c74579
FAQ
What is CVE-2026-31226?
CVE-2026-31226 is a vulnerability with a CVSS score of 9.8 (CRITICAL). The TinyZero project thru commit 6652a63c57fa7e5ccde3fc9c598c7176ff15b839 (2025-58-24) contains a critical command injection vulnerability (CWE-78) in its HDFS file operation utilities. The vulnerabil...
How severe is CVE-2026-31226?
CVE-2026-31226 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-31226?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.