{"id":"CVE-2022-41902","aliases":["BIT-tensorflow-2022-41902","GHSA-cg88-rpvp-cjv5","PYSEC-2026-3161","PYSEC-2026-3310","PYSEC-2026-981"],"url":"https://o3.security/vulnerability/CVE-2022-41902","summary":"Out of bounds write in grappler in Tensorflow","details":"### Impact\nThe function [MakeGrapplerFunctionItem](https://https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/utils/functions.cc#L221) 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.\n\n### Patches\nWe have patched the issue in GitHub commit [a65411a1d69edfb16b25907ffb8f73556ce36bb7](https://github.com/tensorflow/tensorflow/commit/a65411a1d69edfb16b25907ffb8f73556ce36bb7).\n\nThe fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.10.1.\n\n\n### For more information\nPlease 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.\n","published":"2022-12-06T00:00:00Z","modified":"2026-08-12T13:33:25.561774Z","cvss":{"score":7.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"tensorflow","fixedVersion":"2.8.4"},{"ecosystem":"PyPI","name":"tensorflow","fixedVersion":"2.9.3"},{"ecosystem":"PyPI","name":"tensorflow","fixedVersion":"2.10.1"},{"ecosystem":"PyPI","name":"tensorflow-cpu","fixedVersion":"2.8.4"},{"ecosystem":"PyPI","name":"tensorflow-gpu","fixedVersion":"2.8.4"},{"ecosystem":"PyPI","name":"tensorflow-cpu","fixedVersion":"2.9.3"},{"ecosystem":"PyPI","name":"tensorflow-gpu","fixedVersion":"2.9.3"},{"ecosystem":"PyPI","name":"tensorflow-cpu","fixedVersion":"2.10.1"},{"ecosystem":"PyPI","name":"tensorflow-gpu","fixedVersion":"2.10.1"}],"fix":{"url":"https://github.com/tensorflow/tensorflow/commit/a65411a1d69edfb16b25907ffb8f73556ce36bb7","label":"tensorflow/tensorflow@a65411a"},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/utils/functions.cc#L221"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41902.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-cg88-rpvp-cjv5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41902"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/a65411a1d69edfb16b25907ffb8f73556ce36bb7"},{"type":"PACKAGE","url":"https://github.com/tensorflow/tensorflow"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T13:33:25.561774Z"}}