patchminder
No public exploit found CVE-2021-29539

Vulnerabilityin TensorFlow.

Published 14 May 2021 · Updated 3 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Low 2.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
Fixed versions listed below
In plain words

TensorFlow is an end-to-end open source platform for machine learning. Calling `tf.raw_ops.ImmutableConst`(https://www.tensorflow.org/api_docs/python/tf/raw_ops/ImmutableConst) with a `dtype` of `tf.resource` or `tf.variant` results in a segfault in the implementation as code assumes that the tensor contents are pure scalars. We have patched the issue in 4f663d4b8f0bec1b48da6fa091a7d29609980fa4 and will release TensorFlow 2.5.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved. If using `tf.raw_ops.ImmutableConst` in code, you can prevent the segfault by inserting a filter for the `dtype` argument.

What to do now
  • Upgrade tensorflow to 2.1.4, 2.2.3, 2.3.3, 2.4.2 or later, whichever matches your release line.
  • Upgrade tensorflow (PyPI) to 2.1.4, 2.2.3, 2.3.3, 2.4.2 or later, whichever matches your release line.
  • Upgrade tensorflow-cpu (PyPI) to 2.1.4, 2.2.0rc0, 2.2.3, 2.3.0rc0, 2.3.3 or later, whichever matches your release line.
  • Upgrade tensorflow-gpu (PyPI) to 2.1.4, 2.2.0rc0, 2.2.3, 2.3.0rc0, 2.3.3 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
tensorflow
before 2.1.4
2.1.4
CVE record
tensorflow
2.2.0 to before 2.2.3
2.2.3
CVE record
tensorflow
2.3.0 to before 2.3.3
2.3.3
CVE record
tensorflow
2.4.0 to before 2.4.2
2.4.2
CVE record
tensorflow (PyPI)
before 2.1.4
2.1.4
GitHub advisory
tensorflow (PyPI)
2.2.0 to before 2.2.3
2.2.3
GitHub advisory
tensorflow (PyPI)
2.3.0 to before 2.3.3
2.3.3
GitHub advisory
tensorflow (PyPI)
2.4.0 to before 2.4.2
2.4.2
GitHub advisory
tensorflow-cpu (PyPI)
before 2.1.4
2.1.4
GitHub advisory
tensorflow-cpu (PyPI)
2.2.0 to before 2.2.3
2.2.3
GitHub advisory
tensorflow-cpu (PyPI)
2.3.0 to before 2.3.3
2.3.3
GitHub advisory
tensorflow-cpu (PyPI)
2.4.0 to before 2.4.2
2.4.2
GitHub advisory
tensorflow-gpu (PyPI)
before 2.1.4
2.1.4
GitHub advisory
tensorflow-gpu (PyPI)
2.2.0 to before 2.2.3
2.2.3
GitHub advisory
tensorflow-gpu (PyPI)
2.3.0 to before 2.3.3
2.3.3
GitHub advisory
tensorflow-gpu (PyPI)
2.4.0 to before 2.4.2
2.4.2
GitHub advisory
tensorflow-cpu (PyPI)
before 2.2.0rc0
2.2.0rc0
GitHub advisory
tensorflow-cpu (PyPI)
2.2.0 to before 2.3.0rc0
2.3.0rc0
GitHub advisory
tensorflow-cpu (PyPI)
2.3.0 to before 2.3.4
2.3.4
GitHub advisory
tensorflow-cpu (PyPI)
2.4.0 to before 2.4.3
2.4.3
GitHub advisory
tensorflow-gpu (PyPI)
before 2.2.0rc0
2.2.0rc0
GitHub advisory
tensorflow-gpu (PyPI)
2.2.0 to before 2.3.0rc0
2.3.0rc0
GitHub advisory
tensorflow-gpu (PyPI)
2.3.0 to before 2.3.4
2.3.4
GitHub advisory
tensorflow-gpu (PyPI)
2.4.0 to before 2.4.3
2.4.3
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. 30 Mar 2021
    CVE ID reserved by GitHub_M.
  2. 14 May 2021
    Published in the CVE List.
  3. 3 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found.

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:

All CWE-681 vulnerabilities

References
Cite this page

Patchminder. CVE-2021-29539: Vulnerability in TensorFlow. https://patchminder.com/cve/cve-2021-29539/ (accessed 5 December 2026).