GHSA-r6jx-9g48-2r5r · Severity: high · Ecosystem: pip — Arbitrary code execution due to YAML deserialization
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](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/python/keras/saving/model_config.py#L66-L104) 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.
Conclusion & alert: CVE-2021-37678 is rated Moderate Risk (64.1/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 1.02%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-25 | 1.08% | 1.02% | -0.06% |
| 2 | 2026-03-21 | 1.02% | 1.08% | +0.06% |
| 3 | 2026-02-05 | — | 1.02% | — |
Full EPSS history (21 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.3 | 3.1 | CRITICAL |
|
2.5 | 6.0 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.0 | 6.0 | [email protected] |
| 4.6 | 2.0 | MEDIUM |
|
3.9 | 6.4 | [email protected] |
GHSA-r6jx-9g48-2r5r · Severity: high · Ecosystem: pip — Arbitrary code execution due to YAML deserialization
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2021-37678 unimportant priority: Debian including 1 source packages (tensorflow), 2 status rows across 2 suites (forky, sid): resolved 2. | https://security-tracker.debian.org/tracker/CVE-2021-37678 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| tensorflow | >= 2.3.0, < 2.3.4 | cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* | |
| tensorflow | >= 2.4.0, < 2.4.3 | cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* | |
| tensorflow | 2.5.0 | cpe:2.3:a:google:tensorflow:2.5.0:*:*:*:*:*:*:* | |
| tensorflow | 2.6.0 | cpe:2.3:a:google:tensorflow:2.6.0:rc0:*:*:*:*:*:* | |
| tensorflow | 2.6.0 | cpe:2.3:a:google:tensorflow:2.6.0:rc1:*:*:*:*:*:* | |
| tensorflow | 2.6.0 | cpe:2.3:a:google:tensorflow:2.6.0:rc2:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/tensorflow/tensorflow/commit/23d6383eb6c14084a8fc3bdf164043b974818012 | Patch Third Party Advisory |
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-r6jx-9g48-2r5r | Third Party Advisory |