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 package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | >= 2.6.0, < 2.6.1, >= 2.5.0, < 2.5.2, < 2.4.4 | CVE 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.0 | GitHub 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.0 | GitHub 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.0 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 2.4.4, from 2.5.0 before 2.5.2, 2.6.0 | NVD |
| tensorflow (Bitnami) | before 2.4.4, from 2.5.0 before 2.5.2, from 2.6.0 before 2.6.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | medium 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
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gh8h-7j2j-qv4f | advisory, exploit, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/issues/46909 | advisory, exploit, report, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/commit/874bda09e6702cd50bac90b453b50bcc65b2769e | advisory, fix, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41200 | advisory, web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-610.yaml | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-808.yaml | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-393.yaml | web | |
| https://github.com/tensorflow/tensorflow | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41200 changed 2024-11-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gh8h-7j2j-qv4f changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41200 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-393 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2021-610 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2021-808 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2021-41200 changed 2026-09-08 | Apache-2.0 |