Deserialization of Untrusted Data in TensorFlow - CVE-2021-37678
Published: August 12, 2021 / Updated: May 3, 2026
Vulnerability identifier: #VU129225
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2021-37678
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerable software:
TensorFlow
TensorFlow
Software vendor:
TensorFlow
TensorFlow
Description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to unsafe deserialization in the Keras model YAML deserialization functionality when parsing a crafted YAML model definition. A remote attacker can supply a specially crafted YAML payload to execute arbitrary code.
Remediation
Install security update from vendor's website.