Vulnerabilityin TensorFlow.
No public exploit found; not on exploited lists.
In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the `Shard` API in TensorFlow expects the last argument to be a function taking two `int64` (i.e., `long long`) arguments. However, there are several places in TensorFlow where a lambda taking `int` or `int32` arguments is being used. In these cases, if the amount of work to be parallelized is large enough, integer truncation occurs. Depending on how the two arguments of the lambda are used, this can result in segfaults, read/write outside of heap allocated arrays, stack overflows, or data corruption. The issue is patched in commits 27b417360cbd671ef55915e4bb6bb06af8b8a832 and ca8c013b5e97b1373b3bb1c97ea655e69f31a575, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
- Upgrade tensorflow to 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 or later, whichever matches your release line.
- Upgrade tensorflow (PyPI) to 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 or later, whichever matches your release line.
- Upgrade tensorflow-cpu (PyPI) to 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 or later, whichever matches your release line.
- Upgrade tensorflow-gpu (PyPI) to 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 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
- 25 Jun 2020CVE ID reserved by GitHub_M.
- 25 Sep 2020Published in the CVE List.
- 4 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_MISC
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- lists.opensuse.org vendor-advisory, x_refsource_SUSE
Patchminder. CVE-2020-15202: Vulnerability in TensorFlow. https://patchminder.com/cve/cve-2020-15202/ (accessed 5 December 2026).