CVE-2022-21731Google Tensorflow
Media 6.5
Seguir: esta CVE · Google · Google Tensorflow Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 39
- CVSS 3.1
- 6.5
- EPSS
- 0.8% probabilidad de explotación en 30 días · percentil 52
- Requiere autenticación
- Sí
- Publicada
- 3 feb 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-843
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Tensorflow.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | tensorflow |
< 2.5.3 |
2.5.3 |
pip install "tensorflow>=2.5.3" |
| PyPI | tensorflow |
≥ 2.6.0 < 2.6.3 |
2.6.3 |
pip install "tensorflow>=2.6.3" |
| PyPI | tensorflow |
≥ 2.7.0 < 2.7.1 |
2.7.1 |
pip install "tensorflow>=2.7.1" |
| PyPI | tensorflow |
< 2.5.3 |
2.5.3 |
pip install "tensorflow>=2.5.3" |
| PyPI | tensorflow |
≥ 2.6.0 < 2.6.3 |
2.6.3 |
pip install "tensorflow>=2.6.3" |
| PyPI | tensorflow |
≥ 2.7.0 < 2.7.1 |
2.7.1 |
pip install "tensorflow>=2.7.1" |
| PyPI | tensorflow-cpu |
< 2.5.3 |
2.5.3 |
pip install "tensorflow-cpu>=2.5.3" |
| PyPI | tensorflow-cpu |
≥ 2.6.0 < 2.6.3 |
2.6.3 |
pip install "tensorflow-cpu>=2.6.3" |
| PyPI | tensorflow-cpu |
≥ 2.7.0 < 2.7.1 |
2.7.1 |
pip install "tensorflow-cpu>=2.7.1" |
| PyPI | tensorflow-cpu |
< 2.5.3 |
2.5.3 |
pip install "tensorflow-cpu>=2.5.3" |
| PyPI | tensorflow-cpu |
≥ 2.6.0 < 2.6.3 |
2.6.3 |
pip install "tensorflow-cpu>=2.6.3" |
| PyPI | tensorflow-gpu |
< 2.5.3 |
2.5.3 |
pip install "tensorflow-gpu>=2.5.3" |
| PyPI | tensorflow-gpu |
≥ 2.6.0 < 2.6.3 |
2.6.3 |
pip install "tensorflow-gpu>=2.6.3" |
| PyPI | tensorflow-gpu |
≥ 2.7.0 < 2.7.1 |
2.7.1 |
pip install "tensorflow-gpu>=2.7.1" |
| PyPI | tensorflow-gpu |
< 2.5.3 |
2.5.3 |
pip install "tensorflow-gpu>=2.5.3" |
| PyPI | tensorflow-gpu |
≥ 2.6.0 < 2.6.3 |
2.6.3 |
pip install "tensorflow-gpu>=2.6.3" |
Según OSV / GitHub Advisories (GHSA-m4hf-j54p-p353, PYSEC-2026-3211, PYSEC-2022-55, PYSEC-2022-110). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| tensorflow | ≤ 2.5.2 | |
| tensorflow | ≥ 2.6.0 ≤ 2.6.2 | |
| tensorflow | 2.7.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Exploit Third Party Advisory
- github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory