{"id":"CVE-2022-29198","aliases":["BIT-tensorflow-2022-29198","GHSA-mg66-qvc5-rm93","PYSEC-2026-1018","PYSEC-2026-3214","PYSEC-2026-3350"],"url":"https://o3.security/vulnerability/CVE-2022-29198","summary":"Missing validation causes denial of service in TensorFlow via `SparseTensorToCSRSparseMatrix`","details":"TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of `tf.raw_ops.SparseTensorToCSRSparseMatrix` does not fully validate the input arguments. This results in a `CHECK`-failure which can be used to trigger a denial of service attack. The code assumes `dense_shape` is a vector and `indices` is a matrix (as part of requirements for sparse tensors) but there is no validation for this. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.","published":"2022-05-20T21:50:12Z","modified":"2026-08-12T13:00:57.654646Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.00317,"percentile":0.24641,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"tensorflow","fixedVersion":"2.6.4"},{"ecosystem":"PyPI","name":"tensorflow","fixedVersion":"2.7.2"},{"ecosystem":"PyPI","name":"tensorflow","fixedVersion":"2.8.1"},{"ecosystem":"PyPI","name":"tensorflow-cpu","fixedVersion":"2.6.4"},{"ecosystem":"PyPI","name":"tensorflow-cpu","fixedVersion":"2.7.2"},{"ecosystem":"PyPI","name":"tensorflow-cpu","fixedVersion":"2.8.1"},{"ecosystem":"PyPI","name":"tensorflow-gpu","fixedVersion":"2.6.4"},{"ecosystem":"PyPI","name":"tensorflow-gpu","fixedVersion":"2.7.2"},{"ecosystem":"PyPI","name":"tensorflow-gpu","fixedVersion":"2.8.1"}],"fix":{"url":"https://github.com/tensorflow/tensorflow/commit/ea50a40e84f6bff15a0912728e35b657548cef11","label":"tensorflow/tensorflow@ea50a40"},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/sparse/sparse_tensor_to_csr_sparse_matrix_op.cc#L65-L119"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29198.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-mg66-qvc5-rm93"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29198"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/ea50a40e84f6bff15a0912728e35b657548cef11"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T13:00:57.654646Z"}}