CVE-2020-26267Google Tensorflow
High 7.8
Follow: this CVE · Google · Google Tensorflow We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.2% probability of exploitation in 30 days · percentile 17
- Auth required
- Yes
- Published
- Dec 10, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
In affected versions of TensorFlow the tf.raw_ops.DataFormatVecPermute API does not validate the src_format and dst_format attributes. The code assumes that these two arguments define a permutation of NHWC. This can result in uninitialized memory accesses, read outside of bounds and even crashes. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
What to do
- Apply the vendor's security update for Tensorflow.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | tensorflow |
< 1.15.5 |
1.15.5 |
pip install "tensorflow>=1.15.5" |
| PyPI | tensorflow |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow>=2.0.4" |
| PyPI | tensorflow |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow>=2.1.3" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow>=2.2.2" |
| PyPI | tensorflow |
≥ 2.3.0 < 2.3.2 |
2.3.2 |
pip install "tensorflow>=2.3.2" |
| PyPI | tensorflow |
< 1.15.5 |
1.15.5 |
pip install "tensorflow>=1.15.5" |
| PyPI | tensorflow |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow>=2.0.4" |
| PyPI | tensorflow |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow>=2.1.3" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow>=2.2.2" |
| PyPI | tensorflow-cpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-cpu>=1.15.5" |
| PyPI | tensorflow-cpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-cpu>=2.0.4" |
| PyPI | tensorflow-cpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-cpu>=2.1.3" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-cpu>=2.2.2" |
| PyPI | tensorflow-cpu |
≥ 2.3.0 < 2.3.2 |
2.3.2 |
pip install "tensorflow-cpu>=2.3.2" |
| PyPI | tensorflow-cpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-cpu>=1.15.5" |
| PyPI | tensorflow-cpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-cpu>=2.0.4" |
| PyPI | tensorflow-cpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-cpu>=2.1.3" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-cpu>=2.2.2" |
| PyPI | tensorflow-gpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-gpu>=1.15.5" |
| PyPI | tensorflow-gpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-gpu>=2.0.4" |
| PyPI | tensorflow-gpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-gpu>=2.1.3" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-gpu>=2.2.2" |
| PyPI | tensorflow-gpu |
≥ 2.3.0 < 2.3.2 |
2.3.2 |
pip install "tensorflow-gpu>=2.3.2" |
| PyPI | tensorflow-gpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-gpu>=1.15.5" |
| PyPI | tensorflow-gpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-gpu>=2.0.4" |
| PyPI | tensorflow-gpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-gpu>=2.1.3" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-gpu>=2.2.2" |
Per OSV / GitHub Advisories (GHSA-c9f3-9wfr-wgh7, PYSEC-2020-140, PYSEC-2020-298, PYSEC-2020-333). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tensorflow | < 1.15.5 | |
| tensorflow | ≥ 2.0.0 < 2.0.4 | |
| tensorflow | ≥ 2.1.0 < 2.1.3 | |
| tensorflow | ≥ 2.2.0 < 2.2.2 | |
| tensorflow | ≥ 2.3.0 < 2.3.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory