patchminder
No public exploit found CVE-2022-29210

Buffer overflowin TensorFlow.

Published 20 May 2022 · Updated 23 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 5.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.2% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.8.1 or later
In plain words

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.

What to do now
  • Upgrade tensorflow (PyPI) to 2.8.1 or later.
  • Upgrade tensorflow-cpu (PyPI) to 2.8.1 or later.
  • Upgrade tensorflow-gpu (PyPI) to 2.8.1 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
tensorflow
Not confirmed
Not confirmed
CVE record
tensorflow (PyPI)
2.8.0 to before 2.8.1
2.8.1
GitHub advisory
tensorflow-cpu (PyPI)
2.8.0 to before 2.8.1
2.8.1
GitHub advisory
tensorflow-gpu (PyPI)
2.8.0 to before 2.8.1
2.8.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 13 Apr 2022
    CVE ID reserved by GitHub_M.
  2. 20 May 2022
    Published in the CVE List.
  3. 23 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other TensorFlow vulnerabilities

Same weakness: Classic buffer overflow

All CWE-120 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-29210: Buffer overflow in TensorFlow. https://patchminder.com/cve/cve-2022-29210/ (accessed 5 December 2026).