CVE-2021-41200
JSON

5.5medium

Incomplete validation in `tf.summary.create_file_writer`

Severity
5.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-gh8h-7j2j-qv4fBIT-TENSORFLOW-2021-41200PYSEC-2021-393PYSEC-2021-610PYSEC-2021-808

Description

TensorFlow is an open source platform for machine learning. In affected versions if `tf.summary.create_file_writer` is called with non-scalar arguments code crashes due to a `CHECK`-fail. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

Affected

Product or packageVersionsReported by
tensorflow tensorflow>= 2.6.0, < 2.6.1, >= 2.5.0, < 2.5.2, < 2.4.4CVE List
tensorflow (PyPI)from 2.6.0 before 2.6.1, from 2.5.0 before 2.5.2, before 2.4.4, before 874bda09e6702cd50bac90b453b50bcc65b2769e, from 2.7.0rc0 before 2.7.0GitHub Advisory Database, PyPA Advisory Database
tensorflow-cpu (PyPI)from 2.6.0 before 2.6.1, from 2.5.0 before 2.5.2, before 2.4.4, before 874bda09e6702cd50bac90b453b50bcc65b2769e, from 2.7.0rc0 before 2.7.0GitHub Advisory Database, PyPA Advisory Database
tensorflow-gpu (PyPI)from 2.6.0 before 2.6.1, from 2.5.0 before 2.5.2, before 2.4.4, before 874bda09e6702cd50bac90b453b50bcc65b2769e, from 2.7.0rc0 before 2.7.0GitHub Advisory Database, PyPA Advisory Database
google tensorflowbefore 2.4.4, from 2.5.0 before 2.5.2, 2.6.0NVD
tensorflow (Bitnami)before 2.4.4, from 2.5.0 before 2.5.2, from 2.6.0 before 2.6.1Bitnami Vulnerability Database

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD2.1low CVSS:2.0AV:L/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

TensorFlow is an open source platform for machine learning. In affected versions if `tf.summary.create_file_writer` is called with non-scalar arguments code crashes due to a `CHECK`-fail. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

GitHub Advisory Database
Impact

If tf.summary.create_file_writer is called with non-scalar arguments code crashes due to a CHECK-fail.

import tensorflow as tf
import numpy as np
tf.summary.create_file_writer(logdir='', flush_millis=np.ones((1,2)))
Patches

We have patched the issue in GitHub commit 874bda09e6702cd50bac90b453b50bcc65b2769e (merging #51715).

The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.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 externally via a GitHub issue.

NVD (es)

TensorFlow es una plataforma de código abierto para el aprendizaje automático. En las versiones afectadas, si se llama a "tf.summary.create_file_writer" con argumentos no escalares, el código es bloqueado debido a un fallo de "CHECK". La corrección será incluida en TensorFlow versión 2.7.0. También será incluida este commit en TensorFlow versión 2.6.1, TensorFlow versión 2.5.2, y TensorFlow versión 2.4.4, ya que estos también están afectados y todavía están en el rango admitido

References

Sources

SourceRecordLicence
CVE ListCVE-2021-41200 changed 2024-11-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-gh8h-7j2j-qv4f changed 2026-07-08CC-BY-4.0
NVDCVE-2021-41200 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-393 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2021-610 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2021-808 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2021-41200 changed 2026-09-08Apache-2.0