CVE-2020-15202
CRITICAL 9.0CVSS 3.1Integer truncation in Shard API usage
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.
- Published
- 25 Sep 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-197CWE-754
- Also known as
- BIT-tensorflow-2020-15202GHSA-h6fg-mjxg-hqq4PYSEC-2020-125PYSEC-2020-282PYSEC-2020-317
- Sources
- NVDJSONOSV GHSA-h6fg-mjxg-hqq4JSONOSV PYSEC-2020-125JSONOSV PYSEC-2020-282JSONOSV PYSEC-2020-317JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
< 1.15.4 | 1.15.4 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.0.0, < 2.0.3 | 2.0.3 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.1.0, < 2.1.2 | 2.1.2 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.2.0, < 2.2.1 | 2.2.1 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.3.0, < 2.3.1 | 2.3.1 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:* |
= 15.2 | |
| OSV | PyPI | tensorflow | < 1.15.4 | 1.15.4 |
| OSV | PyPI | tensorflow | >= 2.0.0, < 2.0.3 | 2.0.3 |
| OSV | PyPI | tensorflow | >= 2.1.0, < 2.1.2 | 2.1.2 |
| OSV | PyPI | tensorflow | >= 2.2.0, < 2.2.1 | 2.2.1 |
| OSV | PyPI | tensorflow | >= 2.3.0, < 2.3.1 | 2.3.1 |
| OSV | PyPI | tensorflow-cpu | < 1.15.4 | 1.15.4 |
| OSV | PyPI | tensorflow-cpu | >= 2.0.0, < 2.0.3 | 2.0.3 |
| OSV | PyPI | tensorflow-cpu | >= 2.1.0, < 2.1.2 | 2.1.2 |
| OSV | PyPI | tensorflow-cpu | >= 2.2.0, < 2.2.1 | 2.2.1 |
| OSV | PyPI | tensorflow-cpu | >= 2.3.0, < 2.3.1 | 2.3.1 |
| OSV | PyPI | tensorflow-gpu | < 1.15.4 | 1.15.4 |
| OSV | PyPI | tensorflow-gpu | >= 2.0.0, < 2.0.3 | 2.0.3 |
| OSV | PyPI | tensorflow-gpu | >= 2.1.0, < 2.1.2 | 2.1.2 |
| OSV | PyPI | tensorflow-gpu | >= 2.2.0, < 2.2.1 | 2.2.1 |
| OSV | PyPI | tensorflow-gpu | >= 2.3.0, < 2.3.1 | 2.3.1 |
| OSV | PyPI | tensorflow | < 1.15.4; >= 2.0.0, < 2.0.3; >= 2.1.0, < 2.1.2; >= 2.2.0, < 2.2.1; >= 2.3.0, < 2.3.1 | 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 |
| OSV | PyPI | tensorflow-cpu | < 1.15.4; >= 2.0.0, < 2.0.3; >= 2.1.0, < 2.1.2; >= 2.2.0, < 2.2.1; >= 2.3.0, < 2.3.1 | 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 |
| OSV | PyPI | tensorflow-gpu | < 1.15.4; >= 2.0.0, < 2.0.3; >= 2.1.0, < 2.1.2; >= 2.2.0, < 2.2.1; >= 2.3.0, < 2.3.1 | 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 |
References
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html · Mailing List, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/commit/27b417360cbd671ef55915e4bb6bb06af8b8a832 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/commit/ca8c013b5e97b1373b3bb1c97ea655e69f31a575 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1 · Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h6fg-mjxg-hqq4 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-15202 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-282.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-317.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-125.yaml · WEB
- https://github.com/tensorflow/tensorflow · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Sep 2020)