Security mailing lists by PureSourceCode

CVE-2020-15265

HIGH 7.5CVSS 3.1

Segfault 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD google tensorflow
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.