CVE-2022-23594
JSON

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 packageVersionsReported by
tensorflow tensorflow>= 2.7.0, < 2.8.0CVE List
tensorflow (PyPI)from 2.7.0 before 2.7.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-cpu (PyPI)from 2.7.0 before 2.7.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-gpu (PyPI)from 2.7.0 before 2.7.1GitHub Advisory Database, PyPA Advisory Database
google tensorflow2.7.0NVD
tensorflow (Bitnami)from 2.7.0 before 2.7.1Bitnami Vulnerability Database

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
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
PyPA Advisory Database8.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-125CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

Sources

SourceRecordLicence
CVE ListCVE-2022-23594 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-9x52-887g-fhc2 changed 2026-07-13CC-BY-4.0
NVDCVE-2022-23594 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-3157 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-3309 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-752 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2022-23594 changed 2026-09-10Apache-2.0