Skip to content
OpenAdvisories
Medium · 5.9 CVE-2022-35997 BIT-tensorflow-2022-35997EUVD-2022-6894GHSA-p7hr-f446-x6qfPYSEC-2026-1024PYSEC-2026-3220PYSEC-2026-3356

`CHECK` fail in `tf.sparse.cross` in TensorFlow

Published Sep 16, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

TensorFlow is an open source platform for machine learning. If `tf.sparse.cross` receives an input `separator` that is not a scalar, it gives a `CHECK` fail that can be used to trigger a denial of service attack. We have patched the issue in GitHub commit 83dcb4dbfa094e33db084e97c4d0531a559e0ebf. 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.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow < 2.7.2, >= 2.8.0, < 2.8.1, >= 2.9.0, < 2.9.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 2.7.2 2.7.2 GHSA-p7hr-f446-x6qf
PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1 GHSA-p7hr-f446-x6qf
PyPI tensorflow >= 2.9.0, < 2.9.1 2.9.1 GHSA-p7hr-f446-x6qf
PyPI tensorflow < 2.7.2 · >= 2.8.0, < 2.8.1 · >= 2.9.0, < 2.9.1 2.7.2, 2.8.1, 2.9.1 PYSEC-2026-3220
PyPI tensorflow-cpu < 2.7.2 2.7.2 GHSA-p7hr-f446-x6qf
PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-p7hr-f446-x6qf
PyPI tensorflow-cpu >= 2.9.0, < 2.9.1 2.9.1 GHSA-p7hr-f446-x6qf
PyPI tensorflow-cpu < 2.7.2 · >= 2.8.0, < 2.8.1 · >= 2.9.0, < 2.9.1 2.7.2, 2.8.1, 2.9.1 PYSEC-2026-3356
PyPI tensorflow-gpu >= 2.9.0, < 2.9.1 2.9.1 GHSA-p7hr-f446-x6qf
PyPI tensorflow-gpu < 2.7.2 2.7.2 GHSA-p7hr-f446-x6qf
PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-p7hr-f446-x6qf
PyPI tensorflow-gpu < 2.7.2 · >= 2.8.0, < 2.8.1 · >= 2.9.0, < 2.9.1 2.7.2, 2.8.1, 2.9.1 PYSEC-2026-1024

References