Advisory

PYSEC-2026-752

Also known as: BIT-tensorflow-2022-23594, CVE-2022-23594, GHSA-9x52-887g-fhc2, PYSEC-2026-3157, PYSEC-2026-3309

Summary

Out of bounds read in Tensorflow

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-13 16:42 UTC

Affected packages and fixes

tensorflow-gpu

PyPI · All systems

Affected

  • introduced 2.7.0, fixed 2.7.1 (ecosystem)

Fixed versions

2.7.1

Fix

  • Fixed version 2.7.1
    pip install --upgrade tensorflow-gpu==2.7.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences