Vulnerabilityin TensorFlow.
No public exploit found; not on exploited lists.
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.
- 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.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 30 Mar 2021CVE ID reserved by GitHub_M.
- 14 May 2021Published in the CVE List.
- 3 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
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.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other TensorFlow vulnerabilities
Same weakness:
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
Patchminder. CVE-2021-29539: Vulnerability in TensorFlow. https://patchminder.com/cve/cve-2021-29539/ (accessed 5 December 2026).