CVE-2020-15202Google Tensorflow
Critical 9.0 No auth needed
Follow: this CVE · Google · Google Tensorflow We alert you by email or Slack (account required).
- Priority
- 69
- CVSS 3.1
- 9.0
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Sep 25, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Tensorflow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | tensorflow |
< 1.15.4 |
1.15.4 |
pip install "tensorflow>=1.15.4" |
| PyPI | tensorflow |
≥ 2.0.0 < 2.0.3 |
2.0.3 |
pip install "tensorflow>=2.0.3" |
| PyPI | tensorflow |
≥ 2.1.0 < 2.1.2 |
2.1.2 |
pip install "tensorflow>=2.1.2" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.2.1 |
2.2.1 |
pip install "tensorflow>=2.2.1" |
| PyPI | tensorflow |
≥ 2.3.0 < 2.3.1 |
2.3.1 |
pip install "tensorflow>=2.3.1" |
| PyPI | tensorflow |
< 1.15.4 |
1.15.4 |
pip install "tensorflow>=1.15.4" |
| PyPI | tensorflow |
≥ 2.0.0 < 2.0.3 |
2.0.3 |
pip install "tensorflow>=2.0.3" |
| PyPI | tensorflow |
≥ 2.1.0 < 2.1.2 |
2.1.2 |
pip install "tensorflow>=2.1.2" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.2.1 |
2.2.1 |
pip install "tensorflow>=2.2.1" |
| PyPI | tensorflow-cpu |
< 1.15.4 |
1.15.4 |
pip install "tensorflow-cpu>=1.15.4" |
| PyPI | tensorflow-cpu |
≥ 2.0.0 < 2.0.3 |
2.0.3 |
pip install "tensorflow-cpu>=2.0.3" |
| PyPI | tensorflow-cpu |
≥ 2.1.0 < 2.1.2 |
2.1.2 |
pip install "tensorflow-cpu>=2.1.2" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.2.1 |
2.2.1 |
pip install "tensorflow-cpu>=2.2.1" |
| PyPI | tensorflow-cpu |
≥ 2.3.0 < 2.3.1 |
2.3.1 |
pip install "tensorflow-cpu>=2.3.1" |
| PyPI | tensorflow-cpu |
< 1.15.4 |
1.15.4 |
pip install "tensorflow-cpu>=1.15.4" |
| PyPI | tensorflow-cpu |
≥ 2.0.0 < 2.0.3 |
2.0.3 |
pip install "tensorflow-cpu>=2.0.3" |
| PyPI | tensorflow-cpu |
≥ 2.1.0 < 2.1.2 |
2.1.2 |
pip install "tensorflow-cpu>=2.1.2" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.2.1 |
2.2.1 |
pip install "tensorflow-cpu>=2.2.1" |
| PyPI | tensorflow-gpu |
< 1.15.4 |
1.15.4 |
pip install "tensorflow-gpu>=1.15.4" |
| PyPI | tensorflow-gpu |
≥ 2.0.0 < 2.0.3 |
2.0.3 |
pip install "tensorflow-gpu>=2.0.3" |
| PyPI | tensorflow-gpu |
≥ 2.1.0 < 2.1.2 |
2.1.2 |
pip install "tensorflow-gpu>=2.1.2" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.2.1 |
2.2.1 |
pip install "tensorflow-gpu>=2.2.1" |
| PyPI | tensorflow-gpu |
≥ 2.3.0 < 2.3.1 |
2.3.1 |
pip install "tensorflow-gpu>=2.3.1" |
| PyPI | tensorflow-gpu |
< 1.15.4 |
1.15.4 |
pip install "tensorflow-gpu>=1.15.4" |
| PyPI | tensorflow-gpu |
≥ 2.0.0 < 2.0.3 |
2.0.3 |
pip install "tensorflow-gpu>=2.0.3" |
| PyPI | tensorflow-gpu |
≥ 2.1.0 < 2.1.2 |
2.1.2 |
pip install "tensorflow-gpu>=2.1.2" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.2.1 |
2.2.1 |
pip install "tensorflow-gpu>=2.2.1" |
Per OSV / GitHub Advisories (GHSA-h6fg-mjxg-hqq4, PYSEC-2020-125, PYSEC-2020-282, PYSEC-2020-317). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tensorflow | < 1.15.4 | |
| tensorflow | ≥ 2.0.0 < 2.0.3 | |
| tensorflow | ≥ 2.1.0 < 2.1.2 | |
| tensorflow | ≥ 2.2.0 < 2.2.1 | |
| tensorflow | ≥ 2.3.0 < 2.3.1 | |
| opensuse | leap | 15.2 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Exploit Third Party Advisory