Skip to content
Fencer Vulns
medium 5.3

CVE-2020-15190 json

Segfault in Tensorflow

published 2020-09-25 6 y ago modified 2026-09-08 2 mo ago also BIT-tensorflow-2020-15190 , EUVD-2020-0186 , GHSA-4g9f-63rx-5cw4 , PYSEC-2020-113 , PYSEC-2020-270 , PYSEC-2020-305

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 61%
public exploits
0
none known

Summary

In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the `tf.raw_ops.Switch` operation takes as input a tensor and a boolean and outputs two tensors. Depending on the boolean value, one of the tensors is exactly the input tensor whereas the other one should be an empty tensor. However, the eager runtime traverses all tensors in the output. Since only one of the tensors is defined, the other one is `nullptr`, hence we are binding a reference to `nullptr`. This is undefined behavior and reported as an error if compiling with `-fsanitize=null`. In this case, this results in a segmentation fault The issue is patched in commit da8558533d925694483d2c136a9220d6d49d843c, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.

Patch / fix

  • pypi tensorflow 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
  • pypi tensorflow-cpu 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
  • pypi tensorflow-gpu 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
  • bitnami tensorflow 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
  • google tensorflow 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
  • tensorflow2 openSUSE Leap 15.2 2.1.2-lp152.7.3.1
  • tensorflow2-lite openSUSE Leap 15.2 2.1.2-lp152.7.3.1
  • tensorflow2_2_1_2-gnu-hpc openSUSE Leap 15.2 2.1.2-lp152.7.3.1
  • tensorflow2_2_1_2-gnu-openmpi2-hpc openSUSE Leap 15.2 2.1.2-lp152.7.3.1

opensuse advisories openSUSE-SU-2020:1766-1

Exploit prediction

0.94% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/tensorflow/tensorflow/security/advisories/GHSA-4g9f-63rx-5cw4 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
OSV 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
pypi tensorflow
<1.15.4
>=2.0.0, <2.0.3
>=2.1.0, <2.1.2
>=2.2.0, <2.2.1
>=2.3.0, <2.3.1
1.15.4
2.0.3
2.1.2
2.2.1
2.3.1
pypi tensorflow-cpu
<1.15.4
>=2.0.0, <2.0.3
>=2.1.0, <2.1.2
>=2.2.0, <2.2.1
>=2.3.0, <2.3.1
1.15.4
2.0.3
2.1.2
2.2.1
2.3.1
pypi tensorflow-gpu
<1.15.4
>=2.0.0, <2.0.3
>=2.1.0, <2.1.2
>=2.2.0, <2.2.1
>=2.3.0, <2.3.1
1.15.4
2.0.3
2.1.2
2.2.1
2.3.1
bitnami tensorflow
<1.15.4
>=2.0.0, <2.0.3
>=2.1.0, <2.1.2
>=2.2.0, <2.2.1
>=2.3.0, <2.3.1
1.15.4
2.0.3
2.1.2
2.2.1
2.3.1

Affected products

  • tensorflow tensorflow

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-476 NULL Pointer Dereference

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.