CVE-2020-26267 json
Lack of validation in data format attributes in TensorFlow
published 2020-12-10 5 y ago modified 2026-09-10 1 mo ago also BIT-tensorflow-2020-26267 , EUVD-2020-0214 , GHSA-c9f3-9wfr-wgh7 , PYSEC-2020-140 , PYSEC-2020-298 , PYSEC-2020-333
- cvss
- 4.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi tensorflow 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
- pypi tensorflow-cpu 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
- pypi tensorflow-gpu 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
- bitnami tensorflow 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
- google tensorflow 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
- tensorflow2 Package Hub 15 SP3, openSUSE Leap 15.3 2.6.0-bp153.2.3.1
- bazel3.7 Package Hub 15 SP3, openSUSE Leap 15.3 3.7.2-bp153.4.1
- tensorflow2-lite Package Hub 15 SP3, openSUSE Leap 15.3 2.6.0-bp153.2.3.1
- bazel-skylib1.0.3 Package Hub 15 SP3, openSUSE Leap 15.3 1.0.3-bp153.2.1
- tensorflow2_2_6_0-gnu-hpc Package Hub 15 SP3, openSUSE Leap 15.3 2.6.0-bp153.2.3.1
- tensorflow2_2_6_0-gnu-openmpi2-hpc Package Hub 15 SP3, openSUSE Leap 15.3 2.6.0-bp153.2.3.1
opensuse advisories openSUSE-SU-2022:10014-1
- tensorflow Arch Linux 2.4.0-1
arch linux advisories AVG-1348
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c9f3-9wfr-wgh7 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| GitHub | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.3 | AV:L/AC:L/Au:S/C:P/I:P/A:P |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | 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 |
1.15.5 2.0.4 2.1.3 2.2.2 2.3.2 |
| pypi | tensorflow-cpu | <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 |
1.15.5 2.0.4 2.1.3 2.2.2 2.3.2 |
| pypi | tensorflow-gpu | <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 |
1.15.5 2.0.4 2.1.3 2.2.2 2.3.2 |
| bitnami | 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 |
1.15.5 2.0.4 2.1.3 2.2.2 2.3.2 |
Affected products
- tensorflow tensorflow
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/tensorflow/tensorflow/commit/ebc70b7a592420d3d2f359e4b1694c236b82c7ae
web, patch, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/security/advisories/GHSA-c9f3-9wfr-wgh7
web, exploit, patch, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-26267
advisory, web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-298.yaml
web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-333.yaml
web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-140.yaml
web
-
github.com
/tensorflow/tensorflow
package
Sources
- CVE List CVE-2020-26267
- GitHub Advisory GHSA-c9f3-9wfr-wgh7
- NVD CVE-2020-26267
- OSV BIT-tensorflow-2020-26267
- OSV PYSEC-2020-140
- OSV PYSEC-2020-298
- OSV PYSEC-2020-333
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.