8.8high
Out of bounds read in Tensorflow
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9x52-887g-fhc2BIT-TENSORFLOW-2022-23594PYSEC-2026-3157PYSEC-2026-3309PYSEC-2026-752
Description
Tensorflow is an Open Source Machine Learning Framework. The TFG dialect of TensorFlow (MLIR) makes several assumptions about the incoming `GraphDef` before converting it to the MLIR-based dialect. If an attacker changes the `SavedModel` format on disk to invalidate these assumptions and the `GraphDef` is then converted to MLIR-based IR then they can cause a crash in the Python interpreter. Under certain scenarios, heap OOB read/writes are possible. These issues have been discovered via fuzzing and it is possible that more weaknesses exist. We will patch them as they are discovered.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | >= 2.7.0, < 2.8.0 | CVE List |
| tensorflow (PyPI) | from 2.7.0 before 2.7.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | from 2.7.0 before 2.7.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | from 2.7.0 before 2.7.1 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | 2.7.0 | NVD |
| tensorflow (Bitnami) | from 2.7.0 before 2.7.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| 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 |
| PyPA Advisory Database | 8.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Tensorflow is an Open Source Machine Learning Framework. The TFG dialect of TensorFlow (MLIR) makes several assumptions about the incoming `GraphDef` before converting it to the MLIR-based dialect. If an attacker changes the `SavedModel` format on disk to invalidate these assumptions and the `GraphDef` is then converted to MLIR-based IR then they can cause a crash in the Python interpreter. Under certain scenarios, heap OOB read/writes are possible. These issues have been discovered via fuzzing and it is possible that more weaknesses exist. We will patch them as they are discovered.
GitHub Advisory Database
Impact
The TFG dialect of TensorFlow (MLIR) makes several assumptions about the incoming GraphDef before converting it to the MLIR-based dialect.
If an attacker changes the SavedModel format on disk to invalidate these assumptions and the GraphDef is then converted to MLIR-based IR then they can cause a crash in the Python interpreter. Under certain scenarios, heap OOB read/writes are possible.
These issues have been discovered via fuzzing and it is possible that more weaknesses exist. We will patch them as they are discovered.
Patches
We have patched the issue in multiple GitHub commits and these will be included in TensorFlow 2.8.0 and TensorFlow 2.7.1, as both are affected.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
NVD (es)
Tensorflow es un Marco de Aprendizaje Automático de Código Abierto. El dialecto TFG de TensorFlow (MLIR) hace varias suposiciones sobre el "GraphDef" entrante antes de convertirlo al dialecto basado en MLIR. Si un atacante cambia el formato del "SavedModel" en el disco para invalidar estas suposiciones y el "GraphDef" es entonces convertido al IR basado en MLIR, entonces pueden causar un bloqueo en el intérprete de Python. Bajo determinados escenarios, es posible la lectura/escritura de OOB en la pila. Estos problemas han sido detectados por medio de fuzzing y es posible que se presenten más debilidades. Los parchearemos a medida que son detectadas
References
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9x52-887g-fhc2 | advisory, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/tree/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/ir/importexport | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-23594 | advisory, web | |
| https://github.com/tensorflow/tensorflow | web | |
| https://pypi.org/project/tensorflow | package | |
| https://github.com/advisories/GHSA-9x52-887g-fhc2 | advisory | |
| https://pypi.org/project/tensorflow-cpu | package | |
| https://pypi.org/project/tensorflow-gpu | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-23594 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9x52-887g-fhc2 changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2022-23594 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3157 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-3309 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-752 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2022-23594 changed 2026-09-10 | Apache-2.0 |