Code Injection in TensorFlow - CVE-2022-29216
Published: May 17, 2022 / Updated: May 3, 2026
TensorFlow
TensorFlow
Description
The vulnerability allows a local user to execute arbitrary code.
The vulnerability exists due to code injection in saved_model_cli when parsing user-supplied input expressions. A local user can supply a specially crafted --input_exprs argument to execute arbitrary code.
The vulnerable code path is reachable through compatibility handling for numpy expressions, and exploitation requires manual use of the tool.