> CVE-2021-37654 [HIGH]

« BACK_TO_HOME
PUBLISHED
2021-08-12 21:15
MODIFIED
2024-11-21 06:15
CVSS_SCORE V3
7.3
EPSS (Prob. Exploit)
0.17%
Top 93.9%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-15 GITHUB 🔗 2026-11-17 OSV 🔗 2026-11-15

> DESCRIPTION

TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can trigger a crash via a `CHECK`-fail in debug builds of TensorFlow using `tf.raw_ops.ResourceGather` or a read from outside the bounds of heap allocated data in the same API in a release build. The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/resource_variable_ops.cc#L660-L668) does not check that the `batch_dims` value that the user supplies is less than the rank of the input tensor. Since the implementation uses several for loops over the dimensions of `tensor`, this results in reading data from outside the bounds of heap allocated buffer backing the tensor. We have patched the issue in GitHub commit bc9c546ce7015c57c2f15c168b3d9201de679a1d. 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.

> AFFECTED_PRODUCTS

Google - Tensorflow
>= 2.3.0 < 2.3.4
Google - Tensorflow
>= 2.4.0 < 2.4.3
Google - Tensorflow
Version: 2.5.0
Google - Tensorflow
Version: 2.6.0

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
High
Interruption totale du service possible

> GITHUB SECURITY ADVISORY

GHSA-2r8p-fg3c-wcj4 HIGH

Heap OOB and CHECK fail in `ResourceGather`

AFFECTED PACKAGES:
PIP / tensorflow-gpu
= 2.5.0
Fixed in: 2.5.1
PIP / tensorflow-gpu
>= 2.4.0, < 2.4.3
Fixed in: 2.4.3
PIP / tensorflow-gpu
< 2.3.4
Fixed in: 2.3.4
PIP / tensorflow-cpu
= 2.5.0
Fixed in: 2.5.1
PIP / tensorflow-cpu
>= 2.4.0, < 2.4.3
Fixed in: 2.4.3
PIP / tensorflow-cpu
< 2.3.4
Fixed in: 2.3.4
PIP / tensorflow
= 2.5.0
Fixed in: 2.5.1
PIP / tensorflow
>= 2.4.0, < 2.4.3
Fixed in: 2.4.3
PIP / tensorflow
< 2.3.4
Fixed in: 2.3.4

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

AFFECTED PACKAGES:
Unknown / Unknown
11 versions affected
ALIASES:
BIT-tensorflow-2021-37654, GHSA-2r8p-fg3c-wcj4, PYSEC-2021-276, PYSEC-2021-567, PYSEC-2021-765

> HISTORIQUE DES MODIFICATIONS

Première apparition
12/08/2021 21:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:28
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME