{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-29210","published":"2022-05-21T00:15:11.583000Z","last_modified":"2026-06-17T04:39:49.910000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-120","CWE-122","CWE-787"],"cpes":[{"criteria":"cpe:2.3:a:google:tensorflow:2.8.0:*:*:*:*:*:*:*","part":"a","vendor":"google","product":"tensorflow","version":"2.8.0"}],"cpes_truncated":false,"vendors":["google"],"products":["google/tensorflow"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00277,"percentile":0.12841,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-hc2f-7r5r-r2hg","ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[{"introduced":"2.8.0","fixed":"2.8.1"}],"versions":["2.8.0"],"versions_truncated":false},{"advisory":"PYSEC-2026-3200","ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[{"introduced":"2.8.0","fixed":"2.8.1"}],"versions":["2.8.0"],"versions_truncated":false},{"advisory":"GHSA-hc2f-7r5r-r2hg","ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[{"introduced":"2.8.0","fixed":"2.8.1"}],"versions":["2.8.0"],"versions_truncated":false},{"advisory":"PYSEC-2026-3339","ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[{"introduced":"2.8.0","fixed":"2.8.1"}],"versions":["2.8.0"],"versions_truncated":false},{"advisory":"GHSA-hc2f-7r5r-r2hg","ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[{"introduced":"2.8.0","fixed":"2.8.1"}],"versions":["2.8.0"],"versions_truncated":false},{"advisory":"PYSEC-2026-1007","ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[{"introduced":"2.8.0","fixed":"2.8.1"}],"versions":["2.8.0"],"versions_truncated":false}],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2022-29210/","html_en":"/en/cve/CVE-2022-29210/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29210","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-29210"},"untrusted":{"vendor_name":"Google","product_name":"Tensorflow","desc_en":"TensorFlow is an open source platform for machine learning. In version 2.8.0, the `TensorKey` hash function used total estimated `AllocatedBytes()`, which (a) is an estimate per tensor, and (b) is a very poor hash function for constants (e.g. `int32_t`). It also tried to access individual tensor bytes through `tensor.data()` of size `AllocatedBytes()`. This led to ASAN failures because the `AllocatedBytes()` is an estimate of total bytes allocated by a tensor, including any pointed-to constructs (e.g. strings), and does not refer to contiguous bytes in the `.data()` buffer. The discoverers could not use this byte vector anyway because types such as `tstring` include pointers, whereas they needed to hash the string values themselves. This issue is patched in Tensorflow versions 2.9.0 and 2.8.1.","affected":[{"untrusted_vendor":"tensorflow","untrusted_product":"tensorflow","versions":[]}],"references":[{"url":"https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/framework/tensor_key.h#L53-L64","tags":["Third Party Advisory"]},{"url":"https://github.com/tensorflow/tensorflow/commit/1b85a28d395dc91f4d22b5f9e1e9a22e92ccecd6","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hc2f-7r5r-r2hg","tags":["Patch","Third Party Advisory"]}]}}