# CVE-2022-41901: \`CHECK\_EQ\` fail via input in \`SparseMatrixNNZ\` in Tensorflow

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-11-18 · Modified: 2025-04-22
- Aliases: GHSA-g9fm-r5mm-rf9f, BIT-tensorflow-2022-41901, PYSEC-2026-3185, PYSEC-2026-3328, PYSEC-2026-997
- Record: https://cvemate.com/vulnerability/CVE-2022-41901 · JSON: https://cvemate.com/vulnerability/CVE-2022-41901/json

## 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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.65%, percentile 52.579%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- google tensorflow: \< 2.8.4 \| ≥ 2.9.0, \< 2.9.3 \| ≥ 2.10.0, \< 2.10.1
- PyPI tensorflow (PyPI): \< 2.8.4 \| ≥ 2.9.0, \< 2.9.3 \| ≥ 2.10.0, \< 2.10.1
- PyPI tensorflow-cpu (PyPI): \< 2.8.4 \| ≥ 2.9.0, \< 2.9.3 \| ≥ 2.10.0, \< 2.10.1
- PyPI tensorflow-gpu (PyPI): \< 2.8.4 \| ≥ 2.9.0, \< 2.9.3 \| ≥ 2.10.0, \< 2.10.1
- tensorflow tensorflow: ≥ 2.10.0, \< 2.10.1 \| ≥ 2.9.0, \< 2.9.3 \| \< 2.8.4

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-g9fm-r5mm-rf9f>
- <https://github.com/tensorflow/tensorflow/commit/f856d02e5322821aad155dad9b3acab1e9f5d693>
- <https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/sparse/sparse_matrix.h>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41901>
- <https://github.com/tensorflow/tensorflow>
- <https://pypi.org/project/tensorflow>
- <https://github.com/advisories/GHSA-g9fm-r5mm-rf9f>
- <https://pypi.org/project/tensorflow-cpu>
- <https://pypi.org/project/tensorflow-gpu>

---

Data as of 2026-12-05T02:45:09.239Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
