CVE-2020-15205Google Tensorflow
Critical 9.8 No auth needed
Follow: this CVE · Google · Google Tensorflow We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 65
- Auth required
- No
- Published
- Sep 25, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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 `data_splits` argument of `tf.raw_ops.StringNGrams` lacks validation. This allows a user to pass values that can cause heap overflow errors and even leak contents of memory In the linked code snippet, all the binary strings after `ee ff` are contents from the memory stack. Since these can contain return addresses, this data leak can be used to defeat ASLR. The issue is patched in commit 0462de5b544ed4731aa2fb23946ac22c01856b80, 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-g7p5-5759-qv46, PYSEC-2020-128, PYSEC-2020-285, PYSEC-2020-320). 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 Third Party Advisory
- github.com Exploit Third Party Advisory