PYSEC-2026-3309
Out of bounds read in Tensorflow
Quick fix
PYSEC-2026-3309 — tensorflow-cpu: upgrade to the fixed version with the command below.
pip install --upgrade 'tensorflow-cpu>=2.7.1'Details
### Impact The [TFG dialect of TensorFlow (MLIR)](https://github.com/tensorflow/tensorflow/tree/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/ir/importexport) 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](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.
Are you affected?
Enter the version of the package you're using.
Affected packages
2.7.0Fixed in: 2.7.1pip install --upgrade 'tensorflow-cpu>=2.7.1'References
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9x52-887g-fhc2[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-23594[ADVISORY]
- https://github.com/tensorflow/tensorflow[WEB]
- https://github.com/tensorflow/tensorflow/tree/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/ir/importexport[WEB]
- https://pypi.org/project/tensorflow-cpu[PACKAGE]
- https://github.com/advisories/GHSA-9x52-887g-fhc2[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/tensorflow-cpu"]}'