What’s Vulnerable › Vulnerabilities
CVE-2020-26267: Lack of validation in data format attributes in TensorFlow
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-12-10 · updated 2026-06-17
- Weakness: CWE-125
Description
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.
Affected products
- tensorflow: before 1.15.5; from 2.0.0 before 2.0.4; from 2.1.0 before 2.1.3; from 2.2.0 before 2.2.2; from 2.3.0 before 2.3.2 — fixed in 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
How to fix
Upgrade to a fixed version: tensorflow 1.15.5, 2.0.4, 2.1.3, 2.2.2. Check the vendor advisory for mitigations.
References
- https://github.com/tensorflow/tensorflow/commit/ebc70b7a592420d3d2f359e4b1694c236b82c7ae
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c9f3-9wfr-wgh7
- https://github.com/tensorflow/tensorflow/commit/ebc70b7a592420d3d2f359e4b1694c236b82c7ae
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c9f3-9wfr-wgh7
Get alerted when CVE-2020-26267 or the next vulnerability affects your stack