CVE-2020-26268 json
Write to immutable memory region in TensorFlow
published 2020-12-10 5 y ago modified 2026-09-10 1 mo ago also BIT-tensorflow-2020-26268 , EUVD-2020-0215 , GHSA-hhvc-g5hv-48c6 , PYSEC-2020-255 , PYSEC-2020-299 , PYSEC-2020-334
- 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 11%
- public exploits
- 0
- none known
Summary
In affected versions of TensorFlow the tf.raw_ops.ImmutableConst operation returns a constant tensor created from a memory mapped file which is assumed immutable. However, if the type of the tensor is not an integral type, the operation crashes the Python interpreter as it tries to write to the memory area. If the file is too small, TensorFlow properly returns an error as the memory area has fewer bytes than what is needed for the tensor it creates. However, as soon as there are enough bytes, the above snippet causes a segmentation fault. This is because the allocator used to return the buffer data is not marked as returning an opaque handle since the needed virtual method is not overridden. 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.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hhvc-g5hv-48c6 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 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| NVD | 2.0 | 3.6 | AV:L/AC:L/Au:N/C:N/I:P/A:P |
| OSV | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
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-471 Modification of Assumed-Immutable Data (MAID)
References
-
github.com
/tensorflow/tensorflow/commit/c1e1fc899ad5f8c725dcbb6470069890b5060bc7
web, patch, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/security/advisories/GHSA-hhvc-g5hv-48c6
web, exploit, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-26268
advisory, web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-299.yaml
web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-334.yaml
web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-255.yaml
web
-
github.com
/tensorflow/tensorflow
package
Sources
- CVE List CVE-2020-26268
- GitHub Advisory GHSA-hhvc-g5hv-48c6
- NVD CVE-2020-26268
- OSV BIT-tensorflow-2020-26268
- OSV PYSEC-2020-255
- OSV PYSEC-2020-299
- OSV PYSEC-2020-334
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.