CVE-2020-26268
MEDIUM 4.4CVSS 3.1Write to immutable memory region in TensorFlow
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.
- Published
- 10 Dec 2020
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-471
- Also known as
- BIT-tensorflow-2020-26268GHSA-hhvc-g5hv-48c6PYSEC-2020-255PYSEC-2020-299PYSEC-2020-334
- Sources
- NVDJSONOSV GHSA-hhvc-g5hv-48c6JSONOSV PYSEC-2020-255JSONOSV PYSEC-2020-299JSONOSV PYSEC-2020-334JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.6 | AV:L/AC:L/Au:N/C:N/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
< 1.15.5 | 1.15.5 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.0.4 | 2.0.4 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.1.0, < 2.1.3 | 2.1.3 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.2.0, < 2.2.2 | 2.2.2 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.3.2 | 2.3.2 | |
| OSV | PyPI | tensorflow | < 1.15.5 | 1.15.5 |
| OSV | PyPI | tensorflow | >= 2.0.0, < 2.0.4 | 2.0.4 |
| OSV | PyPI | tensorflow | >= 2.1.0, < 2.1.3 | 2.1.3 |
| OSV | PyPI | tensorflow | >= 2.2.0, < 2.2.2 | 2.2.2 |
| OSV | PyPI | tensorflow | >= 2.3.0, < 2.3.2 | 2.3.2 |
| OSV | PyPI | tensorflow-cpu | < 1.15.5 | 1.15.5 |
| OSV | PyPI | tensorflow-cpu | >= 2.0.0, < 2.0.4 | 2.0.4 |
| OSV | PyPI | tensorflow-cpu | >= 2.1.0, < 2.1.3 | 2.1.3 |
| OSV | PyPI | tensorflow-cpu | >= 2.2.0, < 2.2.2 | 2.2.2 |
| OSV | PyPI | tensorflow-cpu | >= 2.3.0, < 2.3.2 | 2.3.2 |
| OSV | PyPI | tensorflow-gpu | < 1.15.5 | 1.15.5 |
| OSV | PyPI | tensorflow-gpu | >= 2.0.0, < 2.0.4 | 2.0.4 |
| OSV | PyPI | tensorflow-gpu | >= 2.1.0, < 2.1.3 | 2.1.3 |
| OSV | PyPI | tensorflow-gpu | >= 2.2.0, < 2.2.2 | 2.2.2 |
| OSV | PyPI | tensorflow-gpu | >= 2.3.0, < 2.3.2 | 2.3.2 |
| OSV | 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 |
| OSV | 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 |
| OSV | 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 |
References
- https://github.com/tensorflow/tensorflow/commit/c1e1fc899ad5f8c725dcbb6470069890b5060bc7 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hhvc-g5hv-48c6 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-26268 · ADVISORY
- 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 10 Dec 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Dec 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Dec 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Dec 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Dec 2020)