# CVE-2020-26267: Lack of validation in data format attributes in TensorFlow

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-10T19:07:26.000Z
- Modified: 2026-09-10T03:49:00.769Z
- Also known as: GHSA-c9f3-9wfr-wgh7, BIT-TENSORFLOW-2020-26267, PYSEC-2020-140, PYSEC-2020-298, PYSEC-2020-333
- Weaknesses: CWE-125
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: < 1.15.5; >= 2.0.0, < 2.0.4; >= 2.1.0, < 2.1.3; >= 2.2.0, < 2.2.2; >= 2.3.0, < 2.3.2
- tensorflow (PyPI): 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; before ebc70b7a592420d3d2f359e4b1694c236b82c7ae
- tensorflow-cpu (PyPI): 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; before ebc70b7a592420d3d2f359e4b1694c236b82c7ae
- tensorflow-gpu (PyPI): 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; before ebc70b7a592420d3d2f359e4b1694c236b82c7ae
- google 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
- tensorflow (Bitnami): 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

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 4.4 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c9f3-9wfr-wgh7> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/ebc70b7a592420d3d2f359e4b1694c236b82c7ae> (advisory, fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26267> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-298.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-333.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-140.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-26267](https://www.cve.org/CVERecord?id=CVE-2020-26267), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c9f3-9wfr-wgh7](https://github.com/advisories/GHSA-c9f3-9wfr-wgh7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-26267](https://nvd.nist.gov/vuln/detail/CVE-2020-26267), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-140](https://osv.dev/vulnerability/PYSEC-2020-140), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-298](https://osv.dev/vulnerability/PYSEC-2020-298), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-333](https://osv.dev/vulnerability/PYSEC-2020-333), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-26267](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-26267), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-26267 · Whole record: https://cve.day/CVE-2020-26267.json · Rebuilt by cve.day 2026-11-25T22:57:56.152Z
