{"id":"CVE-2022-35997","published":"2022-09-16T22:15:18Z","modified":"2025-04-23T17:00:21Z","title":"`CHECK` fail in `tf.sparse.cross` in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00498,"percentile":0.43629,"provenance":"source"},"cwes":[{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p7hr-f446-x6qf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/83dcb4dbfa094e33db084e97c4d0531a559e0ebf","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":8.73},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 2.7.2",">= 2.8.0, < 2.8.1",">= 2.9.0, < 2.9.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:58:19.518728Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-p7hr-f446-x6qf","PYSEC-2026-3220"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-p7hr-f446-x6qf","PYSEC-2026-3356"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.9.0, <2.9.1","<2.7.2",">=2.8.0, <2.8.1"],"patched":["2.9.1","2.7.2","2.8.1"],"from":["GHSA-p7hr-f446-x6qf","PYSEC-2026-1024"],"provenance":"source"}],"summary":{"text":"The flaw is a CHECK failure in the tf.sparse.cross function of TensorFlow, a machine learning platform, triggered when its separator input is not a scalar. An attacker who can reach the affected TensorFlow component over the network, without authentication or user interaction, can crash the process with a crafted separator input, causing a denial of service; the attack has high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:23Z"},"euvd":{"id":"EUVD-2022-6894","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2021-29519","parents":[{"from":"CVE-2021-29519","to":"CVE-2022-35997","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/sparse_cross_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/b1cc5e5a50e7cee09f2c6eb48eb40ee9c4125025","https://github.com/tensorflow/tensorflow/commit/83dcb4dbfa094e33db084e97c4d0531a559e0ebf"],"basis":"shared function","functions":["SparseCrossV2Op"]}]}]}}