CVE-2020-26268Google Tensorflow
Medium 4.4
Follow: this CVE · Google · Google Tensorflow We alert you by email or Slack (account required).
- Priority
- 26
- CVSS 3.1
- 4.4
- EPSS
- 0.2% probability of exploitation in 30 days · percentile 12
- Auth required
- Yes
- Published
- Dec 10, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-471
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Tensorflow.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | tensorflow |
< 1.15.5 |
1.15.5 |
pip install "tensorflow>=1.15.5" |
| PyPI | tensorflow |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow>=2.0.4" |
| PyPI | tensorflow |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow>=2.1.3" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow>=2.2.2" |
| PyPI | tensorflow |
≥ 2.3.0 < 2.3.2 |
2.3.2 |
pip install "tensorflow>=2.3.2" |
| PyPI | tensorflow |
< 1.15.5 |
1.15.5 |
pip install "tensorflow>=1.15.5" |
| PyPI | tensorflow |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow>=2.0.4" |
| PyPI | tensorflow |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow>=2.1.3" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow>=2.2.2" |
| PyPI | tensorflow-cpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-cpu>=1.15.5" |
| PyPI | tensorflow-cpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-cpu>=2.0.4" |
| PyPI | tensorflow-cpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-cpu>=2.1.3" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-cpu>=2.2.2" |
| PyPI | tensorflow-cpu |
≥ 2.3.0 < 2.3.2 |
2.3.2 |
pip install "tensorflow-cpu>=2.3.2" |
| PyPI | tensorflow-cpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-cpu>=1.15.5" |
| PyPI | tensorflow-cpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-cpu>=2.0.4" |
| PyPI | tensorflow-cpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-cpu>=2.1.3" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-cpu>=2.2.2" |
| PyPI | tensorflow-gpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-gpu>=1.15.5" |
| PyPI | tensorflow-gpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-gpu>=2.0.4" |
| PyPI | tensorflow-gpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-gpu>=2.1.3" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-gpu>=2.2.2" |
| PyPI | tensorflow-gpu |
≥ 2.3.0 < 2.3.2 |
2.3.2 |
pip install "tensorflow-gpu>=2.3.2" |
| PyPI | tensorflow-gpu |
< 1.15.5 |
1.15.5 |
pip install "tensorflow-gpu>=1.15.5" |
| PyPI | tensorflow-gpu |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
pip install "tensorflow-gpu>=2.0.4" |
| PyPI | tensorflow-gpu |
≥ 2.1.0 < 2.1.3 |
2.1.3 |
pip install "tensorflow-gpu>=2.1.3" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.2.2 |
2.2.2 |
pip install "tensorflow-gpu>=2.2.2" |
Per OSV / GitHub Advisories (GHSA-hhvc-g5hv-48c6, PYSEC-2020-255, PYSEC-2020-299, PYSEC-2020-334). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tensorflow | < 1.15.5 | |
| tensorflow | ≥ 2.0.0 < 2.0.4 | |
| tensorflow | ≥ 2.1.0 < 2.1.3 | |
| tensorflow | ≥ 2.2.0 < 2.2.2 | |
| tensorflow | ≥ 2.3.0 < 2.3.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory