CVE-2022-41880: ThreadUnsafeUnigramCandidateSampler Heap out of bounds in Tensorflow
Vulnerability summary
CVE-2022-41880 is a critical (CVSS 9.1) Out-of-bounds Read vulnerability in google tensorflow. EPSS estimates a 0.56% chance of exploitation in the next 30 days, higher than 48.1% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 18-11-2022PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
Description
TensorFlow is an open source platform for machine learning. When the `BaseCandidateSamplerOp` function receives a value in `true_classes` larger than `range_max`, a heap oob read occurs. We have patched the issue in GitHub commit b389f5c944cadfdfe599b3f1e4026e036f30d2d4. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA6.8MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:HDiffers
- OSV · PypiEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:HDiffers
EPSS trend
Probability
0.56%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
Increase +0.13 pp
From 0.43% 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
1 foundTensorflow
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
PyPI3 products
- tensorflow< 2.8.4 | ≥ 2.9.0, < 2.9.3 | ≥ 2.10.0, < 2.10.1
- tensorflow-cpu< 2.8.4 | ≥ 2.9.0, < 2.9.3 | ≥ 2.10.0, < 2.10.1
- tensorflow-gpu< 2.8.4 | ≥ 2.9.0, < 2.9.3 | ≥ 2.10.0, < 2.10.1
Google1 product
- tensorflow< 2.8.4 | ≥ 2.9.0, < 2.9.3 | 2.10.0
Tensorflow1 product
- tensorflow≥ 2.10.0, < 2.10.1 | ≥ 2.9.0, < 2.9.3 | < 2.8.4
3 vendors · 5 products
References
9 links- github.com/tensorflow/tensorflow/security/advisories/GHSA-8w5g-3wcv-9g2jWEBExploitThird Party Advisory
- github.com/tensorflow/tensorflow/commit/b389f5c944cadfdfe599b3f1e4026e036f30d2d4WEBPatchThird Party Advisory
- pypi.org/project/tensorflowPACKAGE