CVE & CISA-KEV Catalog

CVE-2021-37678

CRITICAL
9.3
CVSS v3
NVD

Description

TensorFlow is an end-to-end open source platform for machine learning. In affected versions TensorFlow and Keras can be tricked to perform arbitrary code execution when deserializing a Keras model from YAML format. The implementation uses `yaml.unsafe_load` which can perform arbitrary code execution on the input. Given that YAML format support requires a significant amount of work, we have removed it for now. We have patched the issue in GitHub commit 23d6383eb6c14084a8fc3bdf164043b974818012. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

How to fix

Remediation Available
tensorflowNVD
Affected:>= 2.4.0, < 2.4.3Fixed in:2.4.3CVE-2021-37678derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Exploit Intelligence

0.45%probability of exploitation in 30 days
36thpercentile

Low risk: more likely to be exploited than 36% of all known CVEs.

References

Third-Party Advisory1

Related Vulnerabilities

Other CWE-502 (Deserialization of Untrusted Data) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-0669High7.2100%KEV + RansomFix
CVE-2021-44228Critical10.0100%KEV + RansomFix
CVE-2021-35464Critical9.8100%KEV + RansomFix
CVE-2023-29300Critical9.8100%KEV + Ransom-
CVE-2025-53770Critical9.8100%KEV + RansomFix
CVE-2022-47986Critical9.8100%KEV + Ransom-
Embed a live status badge for CVE-2021-37678
CVE-2021-37678 severity badge

Markdown

[![CVE-2021-37678](https://tridentstack.com/cve/badge/CVE-2021-37678.svg)](https://tridentstack.com/cve/CVE-2021-37678)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-37678"><img src="https://tridentstack.com/cve/badge/CVE-2021-37678.svg" alt="CVE-2021-37678"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.