{"cve":"CVE-2022-29207","nvd":{"published":"2022-05-20T22:16:40.997","modified":"2026-06-17T04:39:49.437","status":"Modified","description":"TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, multiple TensorFlow operations misbehave in eager mode when the resource handle provided to them is invalid. In graph mode, it would have been impossible to perform these API calls, but migration to TF 2.x eager mode opened up this vulnerability. If the resource handle is empty, then a reference is bound to a null pointer inside TensorFlow codebase (various codepaths). This is undefined behavior. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5},"cwes":["CWE-20","CWE-475"],"references":["https://github.com/tensorflow/tensorflow/commit/a5b89cd68c02329d793356bda85d079e9e69b4e7","https://github.com/tensorflow/tensorflow/commit/dbdd98c37bc25249e8f288bd30d01e118a7b4498","https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4","https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2","https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-29207","score":0.00325,"percentile":0.25601,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5wpj-c6f7-24x8","url":"https://osv.dev/vulnerability/GHSA-5wpj-c6f7-24x8","summary":"Undefined behavior when users supply invalid resource handles","modified":"2026-07-13T16:43:51.174587703Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.6.4"],"fixed":["2.6.4"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.7.0 <2.7.2"],"fixed":["2.7.2"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.8.0 <2.8.1"],"fixed":["2.8.1"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.6.4"],"fixed":["2.6.4"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.7.0 <2.7.2"],"fixed":["2.7.2"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.8.0 <2.8.1"],"fixed":["2.8.1"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.6.4"],"fixed":["2.6.4"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.7.0 <2.7.2"],"fixed":["2.7.2"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.8.0 <2.8.1"],"fixed":["2.8.1"]}]},{"id":"PYSEC-2026-3112","url":"https://osv.dev/vulnerability/PYSEC-2026-3112","summary":"Undefined behavior when users supply invalid resource handles","modified":"2026-07-13T16:43:51.174587703Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.6.4",">=2.7.0 <2.7.2",">=2.8.0 <2.8.1"],"fixed":["2.6.4","2.7.2","2.8.1"]}]},{"id":"PYSEC-2026-3280","url":"https://osv.dev/vulnerability/PYSEC-2026-3280","summary":"Undefined behavior when users supply invalid resource handles","modified":"2026-07-13T16:43:51.174587703Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.6.4",">=2.7.0 <2.7.2",">=2.8.0 <2.8.1"],"fixed":["2.6.4","2.7.2","2.8.1"]}]},{"id":"PYSEC-2026-955","url":"https://osv.dev/vulnerability/PYSEC-2026-955","summary":"Undefined behavior when users supply invalid resource handles","modified":"2026-07-13T16:43:51.174587703Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.6.4",">=2.7.0 <2.7.2",">=2.8.0 <2.8.1"],"fixed":["2.6.4","2.7.2","2.8.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}