> CVE-2021-37650 [HIGH]

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

> DESCRIPTION

TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation for `tf.raw_ops.ExperimentalDatasetToTFRecord` and `tf.raw_ops.DatasetToTFRecord` can trigger heap buffer overflow and segmentation fault. The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/data/experimental/to_tf_record_op.cc#L93-L102) assumes that all records in the dataset are of string type. However, there is no check for that, and the example given above uses numeric types. We have patched the issue in GitHub commit e0b6e58c328059829c3eb968136f17aa72b6c876. 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:H/A:H

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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
High (H)
Modification totale 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é
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> GITHUB SECURITY ADVISORY

GHSA-f8h4-7rgh-q2gm HIGH

Segfault and heap buffer overflow in `{Experimental,}DatasetToTFRecord`

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-37650, GHSA-f8h4-7rgh-q2gm, PYSEC-2021-272, PYSEC-2021-563, PYSEC-2021-761

> 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