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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29198.json",
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-20"
]
}{
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
],
"cpe": [
"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.8.0:-:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.8.0:rc0:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.8.0:rc1:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.9.0:rc0:*:*:*:*:*:*",
"cpe:2.3:a:google:tensorflow:2.9.0:rc1:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.6.4"
},
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.2"
},
{
"introduced": "2.7.0-rc0"
},
{
"last_affected": "2.7.0-rc0"
},
{
"introduced": "2.7.0-rc1"
},
{
"last_affected": "2.7.0-rc1"
},
{
"introduced": "2.8.0-NA"
},
{
"last_affected": "2.8.0-NA"
},
{
"introduced": "2.8.0-rc0"
},
{
"last_affected": "2.8.0-rc0"
},
{
"introduced": "2.8.0-rc1"
},
{
"last_affected": "2.8.0-rc1"
},
{
"introduced": "2.9.0-rc0"
},
{
"last_affected": "2.9.0-rc0"
},
{
"introduced": "2.9.0-rc1"
},
{
"last_affected": "2.9.0-rc1"
}
]
}"2026-07-09T04:31:43Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29198.json"
[
{
"id": "CVE-2022-29198-bf18f774",
"digest": {
"line_hashes": [
"189491511659226545192563970219586316922",
"283791205669807900820525140421139913677",
"318654317162817314166998206569990845154",
"93716194748727637932121979342238084657"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/tensorflow/tensorflow/commit/ea50a40e84f6bff15a0912728e35b657548cef11",
"deprecated": false,
"target": {
"file": "tensorflow/core/kernels/sparse/sparse_tensor_to_csr_sparse_matrix_op.cc"
}
}
]