SecurityContext

CVE-2022-29198: TensorFlow - Denial of Service

  • Cve: CVE-2022-29198
  • Name: TensorFlow - Denial of Service
  • Description: 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.
  • Impact: Attackers can cause a denial of service by triggering a CHECK failure, potentially crashing the system or service.
  • Remediation: Update to version 2.9.0 or later.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00325
  • Epss percentile: 0.26047
  • Assignee: [email protected]
  • Published at: 2022-05-20T22:16:40Z
  • Age in days: 1649
  • Modified at: 2026-06-17T04:39:47Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-29198
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-20Improper Input Validation

Public exploits

UrlSourceAdded date
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-mg66-qvc5-rm93nvd2022-05-20

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/tensorflow/tensorflow/commit/ea50a40e84f6bff15a0912728e35b657548cef11Patch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-mg66-qvc5-rm93Exploit, Patch, Third Party Advisory
https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/sparse/sparse_tensor_to_csr_sparse_matrix_op.cc#L65-L119Third Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4Release Notes, Third Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2Release Notes, Third Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1Release Notes, Third Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0Release Notes, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow= 2.9.0 rc0; = 2.9.0 rc1; = 2.8.0; = 2.8.0 rc0; = 2.8.0 rc1; >= 2.7.0, < 2.7.2; = 2.7.0 rc0; = 2.7.0 rc1; < 2.6.4nonvd/v1/products/google/tensorflow

Projects

RepositoryLink kindsIndexedUrl
tensorflow/tensorflowcommit, package, releases, security_advisoryyes/v1/repositories/tensorflow/tensorflow

Index

  • Repositories: 361
  • Repositories high signal: 138
  • Packages: 3

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-05-20
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts