Baja

CHECK-fail in DrawBoundingBoxes

  • Publicada: 14.05.2021
  • Actualizado: 11.10.2026 13:19

Impact

An attacker can trigger a denial of service via a CHECK failure by passing an empty image to tf.raw_ops.DrawBoundingBoxes:

python
import tensorflow as tf

images = tf.fill([53, 0, 48, 1], 0.)
boxes = tf.fill([53, 31, 4], 0.)
boxes = tf.Variable(boxes)
boxes[0, 0, 0].assign(3.90621)
tf.raw_ops.DrawBoundingBoxes(images=images, boxes=boxes)

This is because the implementation uses CHECK_* assertions instead of OP_REQUIRES to validate user controlled inputs. Whereas OP_REQUIRES allows returning an error condition back to the user, the CHECK_* macros result in a crash if the condition is false, similar to assert.

cc
const int64 max_box_row_clamp = std::min<int64>(max_box_row, height - 1);
... 
CHECK_GE(max_box_row_clamp, 0);

In this case, height is 0 from the images input. This results in max_box_row_clamp being negative and the assertion being falsified, followed by aborting program execution.

Patches

We have patched the issue in GitHub commit b432a38fe0e1b4b904a6c222cbce794c39703e87.

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.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Yakun Zhang and Ying Wang of Baidu X-Team.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Python (PyPI) tensorflow < 2.1.4, >= 2.2.0, < 2.2.3, >= 2.3.0, < 2.3.3, >= 2.4.0, < 2.4.2 2.1.4, 2.2.3, 2.3.3, 2.4.2
Python (PyPI) tensorflow-cpu < 2.1.4, >= 2.2.0, < 2.2.3, >= 2.3.0, < 2.3.3, >= 2.4.0, < 2.4.2 2.1.4, 2.2.3, 2.3.3, 2.4.2
Python (PyPI) tensorflow-gpu < 2.1.4, >= 2.2.0, < 2.2.3, >= 2.3.0, < 2.3.3, >= 2.4.0, < 2.4.2 2.1.4, 2.2.3, 2.3.3, 2.4.2

Referencias

Puntuación CVSS 2.5/10
Vector CVSS
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Debilidad (CWE)
CWE-754
Plataforma
Python (PyPI)
Paquete
tensorflow, tensorflow-cpu, tensorflow-gpu
Publicada
14.05.2021
Actualizado
11.10.2026 13:19

Fuentes y licencias

OSV / GitHub Advisory Database - PYSEC-2021-170 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2021-461 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2021-659 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-393f-2jr3-cp69 - CC BY 4.0

Historial de vulnerabilidades: tensorflow-cpu

Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (430) en el archivo
Entradas en total
430
Primera → última
04.2019 07.2024
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Crítica 6
  • Alta 111
  • Media 208
  • Baja 105

Divulgaciones por año

  1. 2019: 7
  2. 2020: 35
  3. 2021: 200
  4. 2022: 166
  5. 2023: 21
  6. 2024: 1
  7. 2025: 0
  8. 2026: 0
Gravedad:
  1. CHECK-fail in DrawBoundingBoxes esta entrada
    Baja · 2.5 CVE-2021-29533 < 2.1.4, >= 2.2.0, < 2.2.3, >= 2.3.0, < 2.3.3, >= 2.4.0, < 2.4.2 2.1.4, 2.2.3, 2.3.3, 2.4.2
  2. Alta · 7.5 CVE-2023-33976 < 2.12.1 2.12.1
  3. Alta · 7.5 CVE-2023-25659 < 2.11.1 2.11.1
  4. Alta · 7.5 CVE-2023-25660 < 2.11.1 2.11.1
  5. Alta · 7.5 CVE-2023-25662 < 2.11.1 2.11.1
  6. Alta · 7.5 CVE-2023-25663 < 2.11.1 2.11.1
  7. Alta · 7.5 CVE-2023-25664 < 2.11.1 2.11.1
  8. Alta · 7.5 CVE-2023-25665 < 2.11.1 2.11.1
  9. Alta · 7.5 CVE-2023-25666 < 2.11.1 2.11.1
  10. Alta · 7.5 CVE-2023-25669 < 2.11.1 2.11.1
  11. Alta · 7.5 CVE-2023-25671 < 2.11.1 2.11.1
  12. Alta · 7.5 CVE-2023-25672 < 2.11.1 2.11.1
  13. Alta · 7.5 CVE-2023-25673 < 2.11.1 2.11.1
  14. Alta · 7.5 CVE-2023-25674 < 2.11.1 2.11.1
  15. Alta · 7.5 CVE-2023-25675 < 2.11.1 2.11.1
  16. Alta · 7.5 CVE-2023-25676 < 2.11.1 2.11.1
  17. Alta · 8.0 CVE-2023-25801 < 2.11.1 2.11.1
  18. Alta · 7.5 CVE-2023-27579 < 2.11.1 2.11.1
  19. Alta · 7.5 CVE-2023-25658 < 2.11.1 2.11.1
Mostrar más (20) Mostrando 21 de 118

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.