CVE-2020-15265Google Tensorflow
High 7.5 No auth needed
Follow: this CVE · Google · Google Tensorflow We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- Oct 21, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
In Tensorflow before version 2.4.0, an attacker can pass an invalid `axis` value to `tf.quantization.quantize_and_dequantize`. This results in accessing a dimension outside the rank of the input tensor in the C++ kernel implementation. However, dim_size only does a DCHECK to validate the argument and then uses it to access the corresponding element of an array. Since in normal builds, `DCHECK`-like macros are no-ops, this results in segfault and access out of bounds of the array. The issue is patched in eccb7ec454e6617738554a255d77f08e60ee0808 and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.
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 |
< 2.4.0 |
2.4.0 |
pip install "tensorflow>=2.4.0" |
| PyPI | tensorflow |
< 2.4.0 |
2.4.0 |
pip install "tensorflow>=2.4.0" |
| PyPI | tensorflow-cpu |
< 2.4.0 |
2.4.0 |
pip install "tensorflow-cpu>=2.4.0" |
| PyPI | tensorflow-cpu |
< 2.4.0 |
2.4.0 |
pip install "tensorflow-cpu>=2.4.0" |
| PyPI | tensorflow-gpu |
< 2.4.0 |
2.4.0 |
pip install "tensorflow-gpu>=2.4.0" |
| PyPI | tensorflow-gpu |
< 2.4.0 |
2.4.0 |
pip install "tensorflow-gpu>=2.4.0" |
Per OSV / GitHub Advisories (GHSA-rrfp-j2mp-hq9c, PYSEC-2020-138, PYSEC-2020-295, PYSEC-2020-330). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tensorflow | < 2.4.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory