{"id":"CVE-2022-41901","published":"2022-11-18T00:00:00Z","modified":"2025-04-22T16:03:23Z","title":"`CHECK_EQ` fail via input in `SparseMatrixNNZ` in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an open source platform for machine learning. An input `sparse_matrix` that is not a matrix with a shape with rank 0 will trigger a `CHECK` fail in `tf.raw_ops.SparseMatrixNNZ`. We have patched the issue in GitHub commit f856d02e5322821aad155dad9b3acab1e9f5d693. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00641,"percentile":0.51659,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-g9fm-r5mm-rf9f","tags":[]},{"url":"https://github.com/tensorflow/tensorflow/commit/f856d02e5322821aad155dad9b3acab1e9f5d693","tags":[]},{"url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/sparse/sparse_matrix.h","tags":[]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":10.33},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= 2.10.0, < 2.10.1",">= 2.9.0, < 2.9.3","< 2.8.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:41:48.384621Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.8.4",">=2.9.0, <2.9.3",">=2.10.0, <2.10.1"],"patched":["2.8.4","2.9.3","2.10.1"],"from":["GHSA-g9fm-r5mm-rf9f","PYSEC-2026-3185"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.8.4",">=2.9.0, <2.9.3",">=2.10.0, <2.10.1"],"patched":["2.8.4","2.9.3","2.10.1"],"from":["GHSA-g9fm-r5mm-rf9f","PYSEC-2026-3328"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.8.4",">=2.9.0, <2.9.3",">=2.10.0, <2.10.1"],"patched":["2.8.4","2.9.3","2.10.1"],"from":["GHSA-g9fm-r5mm-rf9f","PYSEC-2026-997"],"provenance":"source"}],"summary":{"text":"The flaw is an improper input validation issue in the SparseMatrixNNZ operation of TensorFlow, where a sparse_matrix input that is not a matrix (a shape with rank other than 2) triggers a CHECK failure in tf.raw_ops.SparseMatrixNNZ. An attacker who can supply crafted input to this operation over the network can crash the process, and exploitation requires a low-privileged account and a user to take action, such as opening or running the affected workload.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:42Z"},"euvd":{"id":"EUVD-2022-7345","exploited":false,"provenance":"source"}}