High severity7.8NVD Advisory· Published Aug 12, 2021· Updated Jun 17, 2026
CVE-2021-37688
CVE-2021-37688
Description
TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can craft a TFLite model that would trigger a null pointer dereference, which would result in a crash and denial of service. The implementation unconditionally dereferences a pointer. We have patched the issue in GitHub commit 15691e456c7dc9bd6be203b09765b063bf4a380c. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
tensorflowPyPI | < 2.3.4 | 2.3.4 |
tensorflowPyPI | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflowPyPI | >= 2.5.0, < 2.5.1 | 2.5.1 |
tensorflow-cpuPyPI | >= 2.5.0, < 2.5.1 | 2.5.1 |
tensorflow-cpuPyPI | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow-cpuPyPI | < 2.3.4 | 2.3.4 |
tensorflow-gpuPyPI | < 2.3.4 | 2.3.4 |
tensorflow-gpuPyPI | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow-gpuPyPI | >= 2.5.0, < 2.5.1 | 2.5.1 |
Affected products
22cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*+ 4 more
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*range: >=2.3.0,<2.3.4
- cpe:2.3:a:google:tensorflow:2.5.0:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.6.0:rc0:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.6.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.6.0:rc2:*:*:*:*:*:*
- osv-coords16 versionspkg:bitnami/tensorflowpkg:pypi/tensorflowpkg:pypi/tensorflow-cpupkg:pypi/tensorflow-gpupkg:rpm/opensuse/bazel-skylib1.0.3&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/bazel3.7&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/tensorflow2&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/tensorflow2-lite&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/tensorflow2_2_6_0-gnu-hpc&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/tensorflow2_2_6_0-gnu-openmpi2-hpc&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/bazel-skylib1.0.3&distro=SUSE%20Package%20Hub%2015%20SP3pkg:rpm/suse/bazel3.7&distro=SUSE%20Package%20Hub%2015%20SP3pkg:rpm/suse/tensorflow2&distro=SUSE%20Package%20Hub%2015%20SP3pkg:rpm/suse/tensorflow2-lite&distro=SUSE%20Package%20Hub%2015%20SP3pkg:rpm/suse/tensorflow2_2_6_0-gnu-hpc&distro=SUSE%20Package%20Hub%2015%20SP3pkg:rpm/suse/tensorflow2_2_6_0-gnu-openmpi2-hpc&distro=SUSE%20Package%20Hub%2015%20SP3
>= 2.3.0, < 2.3.4+ 15 more
- (no CPE)range: >= 2.3.0, < 2.3.4
- (no CPE)range: < 2.3.4
- (no CPE)range: >= 2.5.0, < 2.5.1
- (no CPE)range: < 2.3.4
- (no CPE)range: < 1.0.3-bp153.2.1
- (no CPE)range: < 3.7.2-bp153.4.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- (no CPE)range: < 1.0.3-bp153.2.1
- (no CPE)range: < 3.7.2-bp153.4.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- (no CPE)range: < 2.6.0-bp153.2.3.1
- Range: >= 2.5.0, < 2.5.1
Patches
Vulnerability mechanics
References
8- github.com/tensorflow/tensorflow/commit/15691e456c7dc9bd6be203b09765b063bf4a380cnvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-vcjj-9vg7-vf68ghsaADVISORY
- github.com/tensorflow/tensorflow/security/advisories/GHSA-vcjj-9vg7-vf68nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-37688ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-601.yamlghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-799.yamlghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-310.yamlghsaWEB
- github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/internal/optimized/optimized_ops.hghsaWEB
News mentions
0No linked articles in our index yet.