CVE-2020-15265
HIGH 7.5CVSS 3.1Segfault in `tf.quantization.quantize_and_dequantize`
In Tensorflow before version 2.4.0, an attacker can pass an invalid axis value to tf.quantization.quantize_and_dequantize. This results in accessing a dimension outside the rank of the input tensor in the C++ kernel implementation. However, dim_size only does a DCHECK to validate the argument and then uses it to access the corresponding element of an array. Since in normal builds, DCHECK-like macros are no-ops, this results in segfault and access out of bounds of the array. The issue is patched in eccb7ec454e6617738554a255d77f08e60ee0808 and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.
- Published
- 21 Oct 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-125
- Also known as
- BIT-tensorflow-2020-15265GHSA-rrfp-j2mp-hq9cPYSEC-2020-138PYSEC-2020-295PYSEC-2020-330
- Sources
- NVDJSONOSV GHSA-rrfp-j2mp-hq9cJSONOSV PYSEC-2020-138JSONOSV PYSEC-2020-295JSONOSV PYSEC-2020-330JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
< 2.4.0 | 2.4.0 | |
| OSV | PyPI | tensorflow | < 2.4.0 | 2.4.0 |
| OSV | PyPI | tensorflow-cpu | < 2.4.0 | 2.4.0 |
| OSV | PyPI | tensorflow-gpu | < 2.4.0 | 2.4.0 |
References
- https://github.com/tensorflow/tensorflow/commit/eccb7ec454e6617738554a255d77f08e60ee0808 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/issues/42105 · Patch, Third Party Advisory, WEB, REPORT
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-rrfp-j2mp-hq9c · Exploit, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-15265 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-295.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-330.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-138.yaml · WEB
- https://github.com/tensorflow/tensorflow · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 21 Oct 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Oct 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Oct 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Oct 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Nov 2020)