# CVE-2020-26268: Write to immutable memory region 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.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-10T19:07:28.000Z
- Modified: 2026-09-10T03:48:59.913Z
- Also known as: GHSA-hhvc-g5hv-48c6, BIT-TENSORFLOW-2020-26268, PYSEC-2020-255, PYSEC-2020-299, PYSEC-2020-334
- Weaknesses: CWE-471
- Assigned by: GitHub_M

## Description

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.

(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 c1e1fc899ad5f8c725dcbb6470069890b5060bc7
- 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 c1e1fc899ad5f8c725dcbb6470069890b5060bc7
- 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 c1e1fc899ad5f8c725dcbb6470069890b5060bc7
- 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 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: 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`
- NVD: CVSS:2.0 3.6 Low `AV:L/AC:L/Au:N/C:N/I:P/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hhvc-g5hv-48c6> (exploit, advisory, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/c1e1fc899ad5f8c725dcbb6470069890b5060bc7> (advisory, fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26268> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-299.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-334.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-255.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-26268](https://www.cve.org/CVERecord?id=CVE-2020-26268), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-hhvc-g5hv-48c6](https://github.com/advisories/GHSA-hhvc-g5hv-48c6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-26268](https://nvd.nist.gov/vuln/detail/CVE-2020-26268), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-255](https://osv.dev/vulnerability/PYSEC-2020-255), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-299](https://osv.dev/vulnerability/PYSEC-2020-299), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-334](https://osv.dev/vulnerability/PYSEC-2020-334), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-26268](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-26268), Apache-2.0, modified 2026-09-08

---

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