Code Injection in TensorFlow - CVE-2021-41228

 

Code Injection in TensorFlow - CVE-2021-41228

Published: November 5, 2021 / Updated: May 3, 2026


Vulnerability identifier: #VU129180
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-41228
CWE-ID: CWE-94
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
TensorFlow
Software vendor:
TensorFlow

Description

The vulnerability allows a local user to execute arbitrary code.

The vulnerability exists due to code injection in the saved_model_cli tool when processing user-supplied input expressions. A local user can supply a crafted expression string to execute arbitrary code.

User interaction is required because the CLI tool is run manually.


Remediation

Install security update from vendor's website.

External links