{"cve":"CVE-2022-35952","nvd":{"published":"2022-09-16T20:15:10.443","modified":"2026-06-17T04:52:35.490","status":"Modified","description":"TensorFlow is an open source platform for machine learning. The `UnbatchGradOp` function takes an argument `id` that is assumed to be a scalar. A nonscalar `id` can trigger a `CHECK` failure and crash the program. It also requires its argument `batch_index` to contain three times the number of elements as indicated in its `batch_index.dim_size(0)`. An incorrect `batch_index` can trigger a `CHECK` failure and crash the program. We have patched the issue in GitHub commit 5f945fc6409a3c1e90d6970c9292f805f6e6ddf2. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-617"],"references":["https://github.com/tensorflow/tensorflow/blob/769eddaf479c8debead9a59a72617d6ed6f0fe10/tensorflow/core/kernels/batch_kernels.cc#L891","https://github.com/tensorflow/tensorflow/commit/5f945fc6409a3c1e90d6970c9292f805f6e6ddf2","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h5vq-gw2c-pq47","https://github.com/tensorflow/tensorflow/blob/769eddaf479c8debead9a59a72617d6ed6f0fe10/tensorflow/core/kernels/batch_kernels.cc#L891","https://github.com/tensorflow/tensorflow/commit/5f945fc6409a3c1e90d6970c9292f805f6e6ddf2"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T21:35:14.992143698+00:00"},"epss":{"cve":"CVE-2022-35952","score":0.00716,"percentile":0.5379,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h5vq-gw2c-pq47","url":"https://osv.dev/vulnerability/GHSA-h5vq-gw2c-pq47","summary":"TensorFlow vulnerable to `CHECK` failures in `UnbatchGradOp`","modified":"2026-07-13T16:42:33.343565063Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<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","purl":"pkg:pypi/tensorflow","ranges":[">=2.9.0 <2.9.1"],"fixed":["2.9.1"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<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-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.9.0 <2.9.1"],"fixed":["2.9.1"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<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"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.9.0 <2.9.1"],"fixed":["2.9.1"]}]},{"id":"PYSEC-2026-1005","url":"https://osv.dev/vulnerability/PYSEC-2026-1005","summary":"TensorFlow vulnerable to `CHECK` failures in `UnbatchGradOp`","modified":"2026-07-13T16:42:33.343565063Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.7.2",">=2.8.0 <2.8.1",">=2.9.0 <2.9.1"],"fixed":["2.7.2","2.8.1","2.9.1"]}]},{"id":"PYSEC-2026-3198","url":"https://osv.dev/vulnerability/PYSEC-2026-3198","summary":"TensorFlow vulnerable to `CHECK` failures in `UnbatchGradOp`","modified":"2026-07-13T16:42:33.343565063Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.7.2",">=2.8.0 <2.8.1",">=2.9.0 <2.9.1"],"fixed":["2.7.2","2.8.1","2.9.1"]}]},{"id":"PYSEC-2026-3337","url":"https://osv.dev/vulnerability/PYSEC-2026-3337","summary":"TensorFlow vulnerable to `CHECK` failures in `UnbatchGradOp`","modified":"2026-07-13T16:42:33.343565063Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.7.2",">=2.8.0 <2.8.1",">=2.9.0 <2.9.1"],"fixed":["2.7.2","2.8.1","2.9.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."]}