CVE-2021-29549Google Tensorflow
Media 5.5
Seguir: esta CVE · Google · Google Tensorflow Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 33
- CVSS 3.1
- 5.5
- EPSS
- 0.2% probabilidad de explotación en 30 días · percentil 9
- Requiere autenticación
- Sí
- Publicada
- 14 may 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-369
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Qué pasa
TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a runtime division by zero error and denial of service in `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/6f26b3f3418201479c264f2a02000880d8df151c/tensorflow/core/kernels/quantized_add_op.cc#L289-L295) computes a modulo operation without validating that the divisor is not zero. Since `vector_num_elements` is determined based on input shapes(https://github.com/tensorflow/tensorflow/blob/6f26b3f3418201479c264f2a02000880d8df151c/tensorflow/core/kernels/quantized_add_op.cc#L522-L544), a user can trigger scenarios where this quantity is 0. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, 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.1.4 |
2.1.4 |
pip install "tensorflow>=2.1.4" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.2.3 |
2.2.3 |
pip install "tensorflow>=2.2.3" |
| PyPI | tensorflow |
≥ 2.3.0 < 2.3.3 |
2.3.3 |
pip install "tensorflow>=2.3.3" |
| PyPI | tensorflow |
≥ 2.4.0 < 2.4.2 |
2.4.2 |
pip install "tensorflow>=2.4.2" |
| PyPI | tensorflow |
< 2.2.0rc0 |
2.2.0rc0 |
pip install "tensorflow>=2.2.0rc0" |
| PyPI | tensorflow |
≥ 2.2.0 < 2.3.0rc0 |
2.3.0rc0 |
pip install "tensorflow>=2.3.0rc0" |
| PyPI | tensorflow |
≥ 2.3.0 < 2.3.4 |
2.3.4 |
pip install "tensorflow>=2.3.4" |
| PyPI | tensorflow |
≥ 2.4.0 < 2.4.3 |
2.4.3 |
pip install "tensorflow>=2.4.3" |
| PyPI | tensorflow-cpu |
< 2.1.4 |
2.1.4 |
pip install "tensorflow-cpu>=2.1.4" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.2.3 |
2.2.3 |
pip install "tensorflow-cpu>=2.2.3" |
| PyPI | tensorflow-cpu |
≥ 2.3.0 < 2.3.3 |
2.3.3 |
pip install "tensorflow-cpu>=2.3.3" |
| PyPI | tensorflow-cpu |
≥ 2.4.0 < 2.4.2 |
2.4.2 |
pip install "tensorflow-cpu>=2.4.2" |
| PyPI | tensorflow-cpu |
< 2.2.0rc0 |
2.2.0rc0 |
pip install "tensorflow-cpu>=2.2.0rc0" |
| PyPI | tensorflow-cpu |
≥ 2.2.0 < 2.3.0rc0 |
2.3.0rc0 |
pip install "tensorflow-cpu>=2.3.0rc0" |
| PyPI | tensorflow-cpu |
≥ 2.3.0 < 2.3.4 |
2.3.4 |
pip install "tensorflow-cpu>=2.3.4" |
| PyPI | tensorflow-cpu |
≥ 2.4.0 < 2.4.3 |
2.4.3 |
pip install "tensorflow-cpu>=2.4.3" |
| PyPI | tensorflow-gpu |
< 2.1.4 |
2.1.4 |
pip install "tensorflow-gpu>=2.1.4" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.2.3 |
2.2.3 |
pip install "tensorflow-gpu>=2.2.3" |
| PyPI | tensorflow-gpu |
≥ 2.3.0 < 2.3.3 |
2.3.3 |
pip install "tensorflow-gpu>=2.3.3" |
| PyPI | tensorflow-gpu |
≥ 2.4.0 < 2.4.2 |
2.4.2 |
pip install "tensorflow-gpu>=2.4.2" |
| PyPI | tensorflow-gpu |
< 2.2.0rc0 |
2.2.0rc0 |
pip install "tensorflow-gpu>=2.2.0rc0" |
| PyPI | tensorflow-gpu |
≥ 2.2.0 < 2.3.0rc0 |
2.3.0rc0 |
pip install "tensorflow-gpu>=2.3.0rc0" |
| PyPI | tensorflow-gpu |
≥ 2.3.0 < 2.3.4 |
2.3.4 |
pip install "tensorflow-gpu>=2.3.4" |
| PyPI | tensorflow-gpu |
≥ 2.4.0 < 2.4.3 |
2.4.3 |
pip install "tensorflow-gpu>=2.4.3" |
Según OSV / GitHub Advisories (GHSA-x83m-p7pv-ch8v, PYSEC-2021-186, PYSEC-2021-477, PYSEC-2021-675). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| tensorflow | < 2.1.4 | |
| tensorflow | ≥ 2.2.0 < 2.2.3 | |
| tensorflow | ≥ 2.3.0 < 2.3.3 | |
| tensorflow | ≥ 2.4.0 < 2.4.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory