CVE-2021-37668
FPE in `tf.raw_ops.UnravelIndex`
Overview
Description
TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause denial of service in applications serving models using tf.raw_ops.UnravelIndex by triggering a division by 0. The implementation does not check that the tensor subsumed by dims is not empty. Hence, if one element of dims is 0, the implementation does a division by 0. We have patched the issue in GitHub commit a776040a5e7ebf76eeb7eb923bf1ae417dd4d233. 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.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-369
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | tensorflow | >=2.3.0, <2.3.4>=2.4.0, <2.4.3>=2.5.0, <2.5.1 | 2.3.42.4.32.5.1 |
| PyPI | tensorflow | <2.3.4>=2.4.0, <2.4.3>=2.5.0, <2.5.1 | 2.3.42.4.32.5.1 |
| PyPI | tensorflow-cpu | <2.3.4>=2.4.0, <2.4.3>=2.5.0, <2.5.1 | 2.3.42.4.32.5.1 |
| PyPI | tensorflow-gpu | <2.3.4>=2.4.0, <2.4.3>=2.5.0, <2.5.1 | 2.3.42.4.32.5.1 |
Open a package to see all its vulnerabilities.
Operating systems · 1 fix
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | tensorflow-lite +1 | 2.9.1-1.1 | openSUSE-SU-2024:12116-1 |
References
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-581.yaml
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-779.yaml
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-290.yaml
- github.com https://github.com/tensorflow/tensorflow
- github.com https://github.com/tensorflow/tensorflow/commit/a776040a5e7ebf76eeb7eb923bf1ae417dd4d233
- github.com https://github.com/tensorflow/tensorflow/security/advisories/GHSA-2wmv-37vq-52g5
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-37668
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.