CVE-2022-35960: `CHECK` failure in `TensorListReserve` in TensorFlow
Vulnerability summary
CVE-2022-35960 is a high (CVSS 7.5) Reachable Assertion vulnerability in google tensorflow. EPSS estimates a 0.77% chance of exploitation in the next 30 days, higher than 56.9% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 16-09-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
TensorFlow is an open source platform for machine learning. In `core/kernels/list_kernels.cc's TensorListReserve`, `num_elements` is assumed to be a tensor of size 1. When a `num_elements` of more than 1 element is provided, then `tf.raw_ops.TensorListReserve` fails the `CHECK_EQ` in `CheckIsAlignedAndSingleElement`. We have patched the issue in GitHub commit b5f6fbfba76576202b72119897561e3bd4f179c7. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · PypiEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.77%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
Increase +0.07 pp
From 0.70% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
PyPI3 products
- tensorflow< 2.7.2 | ≥ 2.8.0, < 2.8.1 | ≥ 2.9.0, < 2.9.1
- tensorflow-cpu< 2.7.2 | ≥ 2.8.0, < 2.8.1 | ≥ 2.9.0, < 2.9.1
- tensorflow-gpu< 2.7.2 | ≥ 2.8.0, < 2.8.1 | ≥ 2.9.0, < 2.9.1
Google1 product
- tensorflow≥ 2.7.0, < 2.7.2 | 2.8.0 | 2.9.0 | 2.10:rc0 | 2.10:rc1 | 2.10:rc2 | 2.10:rc3
Tensorflow1 product
- tensorflow< 2.7.2 | ≥ 2.8.0, < 2.8.1 | ≥ 2.9.0, < 2.9.1
3 vendors · 5 products
References
10 links- github.com/tensorflow/tensorflow/security/advisories/GHSA-v5xg-3q2c-c2r4X Refsource CONFIRMWEBPatchThird Party Advisory
- github.com/tensorflow/tensorflow/commit/b5f6fbfba76576202b72119897561e3bd4f179c7X Refsource MISCWEBPatchThird Party Advisory
- pypi.org/project/tensorflowPACKAGE