CVE-2020-15209 json
Null pointer dereference in tensorflow-lite
published 6y ago modified 2mo ago also BIT-tensorflow-2020-15209 , EUVD-2020-0205 , GHSA-qh32-6jjc-qprm , PYSEC-2020-132 , PYSEC-2020-289 , PYSEC-2020-324
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, a crafted TFLite model can force a node to have as input a tensor backed by a `nullptr` buffer. This can be achieved by changing a buffer index in the flatbuffer serialization to convert a read-only tensor to a read-write one. The runtime assumes that these buffers are written to before a possible read, hence they are initialized with `nullptr`. However, by changing the buffer index for a tensor and implicitly converting that tensor to be a read-write one, as there is nothing in the model that writes to it, we get a null pointer dereference. The issue is patched in commit 0b5662bc, 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
Is CVE-2020-15209 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/tensorflow/tensorflow/security/advisories/GHSA-qh32-6jjc-qprm referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
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-476 NULL Pointer Dereference
References
-
github.com
/tensorflow/tensorflow/commit/0b5662bc2be13a8c8f044d925d87fb6e56247cd8
web, patch, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/security/advisories/GHSA-qh32-6jjc-qprm
web, exploit, third-party-advisory, advisory
-
lists.opensuse.org
/opensuse-security-announce/2020-10/msg00065.html
vendor-advisory, web, mailing-list, third-party-advisory, advisory
-
github.com
/tensorflow/tensorflow/releases/tag/v2.3.1
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-15209
advisory, web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-289.yaml
web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-324.yaml
web
-
github.com
/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-132.yaml
web
-
github.com
/tensorflow/tensorflow
package
Sources
- CVE List CVE-2020-15209
- GitHub Advisory GHSA-qh32-6jjc-qprm
- NVD CVE-2020-15209
- OSV BIT-tensorflow-2020-15209
- OSV PYSEC-2020-132
- OSV PYSEC-2020-289
- OSV PYSEC-2020-324
Fencer Intel 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.