> CVE-2022-21731 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2022-02-03 12:15
MODIFIED
2025-05-05 17:17
CVSS_SCORE V3
6.5
EPSS (Prob. Exploit)
0.85%
Top 41.2%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-15 GITHUB 🔗 2026-11-17

> DESCRIPTION

Tensorflow is an Open Source Machine Learning Framework. The implementation of shape inference for `ConcatV2` can be used to trigger a denial of service attack via a segfault caused by a type confusion. The `axis` argument is translated into `concat_dim` in the `ConcatShapeHelper` helper function. Then, a value for `min_rank` is computed based on `concat_dim`. This is then used to validate that the `values` tensor has at least the required rank. However, `WithRankAtLeast` receives the lower bound as a 64-bits value and then compares it against the maximum 32-bits integer value that could be represented. Due to the fact that `min_rank` is a 32-bits value and the value of `axis`, the `rank` argument is a negative value, so the error check is bypassed. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.

> AFFECTED_PRODUCTS

Google - Tensorflow
<= 2.5.2
Google - Tensorflow
>= 2.6.0 <= 2.6.2
Google - Tensorflow
Version: 2.7.0

> CVSS V3 METRICS

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

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
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
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
High
Interruption totale du service possible

> GITHUB SECURITY ADVISORY

GHSA-m4hf-j54p-p353 HIGH

Type confusion leading to segfault in Tensorflow

AFFECTED PACKAGES:
PIP / tensorflow-gpu
= 2.7.0
Fixed in: 2.7.1
PIP / tensorflow-gpu
>= 2.6.0, < 2.6.3
Fixed in: 2.6.3
PIP / tensorflow-gpu
< 2.5.3
Fixed in: 2.5.3
PIP / tensorflow-cpu
= 2.7.0
Fixed in: 2.7.1
PIP / tensorflow-cpu
>= 2.6.0, < 2.6.3
Fixed in: 2.6.3
PIP / tensorflow-cpu
< 2.5.3
Fixed in: 2.5.3
PIP / tensorflow
= 2.7.0
Fixed in: 2.7.1
PIP / tensorflow
>= 2.6.0, < 2.6.3
Fixed in: 2.6.3
PIP / tensorflow
< 2.5.3
Fixed in: 2.5.3

> HISTORIQUE DES MODIFICATIONS

Première apparition
03/02/2022 12:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:32
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