{"id":"CVE-2020-15193","published":"2020-09-25T18:40:51Z","modified":"2024-08-04T13:08:22Z","title":"Memory corruption in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"In Tensorflow before versions 2.2.1 and 2.3.1, the implementation of `dlpack.to_dlpack` can be made to use uninitialized memory resulting in further memory corruption. This is because the pybind11 glue code assumes that the argument is a tensor. However, there is nothing stopping users from passing in a Python object instead of a tensor. The uninitialized memory address is due to a `reinterpret_cast` Since the `PyObject` is a Python object, not a TensorFlow Tensor, the cast to `EagerTensor` fails. The issue is patched in commit 22e07fb204386768e5bcbea563641ea11f96ceb8 and is released in TensorFlow versions 2.2.1, or 2.3.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0083,"percentile":0.58439,"provenance":"source"},"cwes":[{"id":"CWE-908","name":"Use of Uninitialized Resource"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-rjjg-hgv6-h69v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/22e07fb204386768e5bcbea563641ea11f96ceb8","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":11.69},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["= 2.2.0","= 2.3.0"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":[">=2.2.0, <2.2.1",">=2.3.0, <2.3.1","<2.2.1",">=2.3.0rc0, <2.3.1"],"patched":["2.2.1","2.3.1"],"from":["GHSA-rjjg-hgv6-h69v","PYSEC-2020-116"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.2.0, <2.2.1",">=2.3.0, <2.3.1","<2.2.1",">=2.3.0rc0, <2.3.1"],"patched":["2.2.1","2.3.1"],"from":["GHSA-rjjg-hgv6-h69v","PYSEC-2020-273"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.2.0, <2.2.1",">=2.3.0, <2.3.1","<2.2.1",">=2.3.0rc0, <2.3.1"],"patched":["2.2.1","2.3.1"],"from":["GHSA-rjjg-hgv6-h69v","PYSEC-2020-308"],"provenance":"source"}],"summary":{"text":"The flaw is in TensorFlow's dlpack.to_dlpack function, where the pybind11 glue code assumes its argument is a tensor and does not reject other Python objects, causing a reinterpret_cast to operate on uninitialized memory and corrupt memory in versions before 2.2.1 and 2.3.1. An attacker with low-privilege network access to a system that accepts a crafted Python object as input, with no user interaction required, can trigger memory corruption that affects integrity and availability, though the attack conditions depend on whether the application exposes this function to untrusted input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:31Z"},"euvd":{"id":"EUVD-2020-0189","exploited":false,"provenance":"source"}}