{"id":"CVE-2022-41880","published":"2022-11-18T00:00:00Z","modified":"2025-04-22T16:07:13Z","title":"ThreadUnsafeUnigramCandidateSampler Heap out of bounds in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00554,"percentile":0.47143,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8w5g-3wcv-9g2j","tags":[]},{"url":"https://github.com/tensorflow/tensorflow/commit/b389f5c944cadfdfe599b3f1e4026e036f30d2d4","tags":[]},{"url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/candidate_sampler_ops.cc","tags":[]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":9.43},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= 2.10.0, < 2.10.1",">= 2.9.0, < 2.9.3","< 2.8.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:42:45.750498Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":[">=2.10.0, <2.10.1","<2.8.4",">=2.9.0, <2.9.3"],"patched":["2.10.1","2.8.4","2.9.3"],"from":["GHSA-8w5g-3wcv-9g2j","PYSEC-2026-3140"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.10.0, <2.10.1","<2.8.4",">=2.9.0, <2.9.3"],"patched":["2.10.1","2.8.4","2.9.3"],"from":["GHSA-8w5g-3wcv-9g2j","PYSEC-2026-3298"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.10.0, <2.10.1","<2.8.4",">=2.9.0, <2.9.3"],"patched":["2.10.1","2.8.4","2.9.3"],"from":["GHSA-8w5g-3wcv-9g2j","PYSEC-2026-971"],"provenance":"source"}],"summary":{"text":"A heap out-of-bounds read exists in TensorFlow's ThreadUnsafeUnigramCandidateSampler, within the BaseCandidateSamplerOp function, which is triggered when a value in true_classes exceeds range_max. An attacker with low-privilege access who can get a user to interact with the crafted input can exploit this over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:10Z"},"euvd":{"id":"EUVD-2022-7289","exploited":false,"provenance":"source"}}