CVE Catalog

CVE-2026-31226

Critical
Published: Translated: NVD NIST

Summary

The TinyZero project 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.

Risk Assessment

An attacker can inject arbitrary OS commands, leading to remote code execution with the privileges of the user running the TinyZero training process. This poses a serious security threat to the system.

Recommendation

It is recommended to improve input sanitization and avoid using os.system() for executing shell commands. A code audit should also be conducted to identify and fix similar vulnerabilities.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS