← Vulnerability feed

Vulnerability record · CVE-2022-29204 · published 20 May 2022

CVE-2022-29204: Google tensorflow improper input validation vulnerability

Google · Tensorflow

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.UnsortedSegmentJoin` 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 `num_segments` is a positive scalar but there is no validation. Since this value is used to allocate the output tensor, a negative value would result in a `CHECK`-failure (assertion failure), as per TFSA-2021-198. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

5.5 CVSS 3.1 Medium EPSS 0.35% · top 70.3% CWE-20 · Improper input validationCWE-191 · CWE-191
5.5CVSS 3.1 base score, v2 2.1
0.35%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
18References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.UnsortedSegmentJoin` 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 `num_segments` is a positive scalar but there is no validation. Since this value is used to allocate the output tensor, a negative value would result in a `CHECK`-failure (assertion failure), as per TFSA-2021-198. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/unsorted_ Third Party Advisory
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md PatchThird Party Advisory
https://github.com/tensorflow/tensorflow/commit/20cb18724b0bf6c09071a3f53434c4eec53cc147 PatchThird Party Advisory
https://github.com/tensorflow/tensorflow/commit/84563f265f28b3c36a15335c8b005d405260e943 PatchThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hx9q-2mx4-m4pg ExploitPatchThird Party Advisory
https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/unsorted_ Third Party Advisory
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md PatchThird Party Advisory
https://github.com/tensorflow/tensorflow/commit/20cb18724b0bf6c09071a3f53434c4eec53cc147 PatchThird Party Advisory
https://github.com/tensorflow/tensorflow/commit/84563f265f28b3c36a15335c8b005d405260e943 PatchThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0 Release NotesThird Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hx9q-2mx4-m4pg ExploitPatchThird Party Advisory

Track CVE-2022-29204 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2020-15196Google tensorflow memory buffer overflow vulnerabilityIn Tensorflow version 2.3.0, the `SparseCountSparseOutput` and `RaggedCountSparseOutput` implementations don't validate that the `weights` tensor has…EPSS 0.91%9.8CVE-2023-25668Google tensorflow heap-based buffer overflow vulnerabilityTensorFlow is an open source platform for machine learning. Attackers using Tensorflow prior to 2.12.0 or 2.11.1 can access heap memory which is not …EPSS 0.84%9.8CVE-2023-25664Google tensorflow classic buffer overflow vulnerabilityTensorFlow is an open source platform for machine learning. Prior to versions 2.12.0 and 2.11.1, there is a heap buffer overflow in TAvgPoolGrad. A f…EPSS 0.42%9.8CVE-2022-41900Google tensorflow out-of-bounds read vulnerabilityTensorFlow is an open source platform for machine learning. The security vulnerability results in FractionalMax(AVG)Pool with illegal pooling_ratio. …EPSS 0.81%9.8CVE-2022-35939Google tensorflow out-of-bounds write vulnerabilityTensorFlow is an open source platform for machine learning. The `ScatterNd` function takes an input argument that determines the indices of of the ou…EPSS 0.58%9.8CVE-2022-23587Google tensorflow integer overflow vulnerabilityTensorflow is an Open Source Machine Learning Framework. Under certain scenarios, Grappler component of TensorFlow is vulnerable to an integer overfl…EPSS 0.90%9.8CVE-2020-15208Google tensorflow out-of-bounds read vulnerabilityIn tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, when determining the common dimension size of two tensors, TFLite uses a `D…EPSS 0.91%9.8CVE-2020-15205Google tensorflow memory buffer overflow vulnerabilityIn Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the `data_splits` argument of `tf.raw_ops.StringNGrams` lacks validation. This a…EPSS 1.0%

Source: NIST National Vulnerability Database (record CVE-2022-29204), CISA KEV, FIRST EPSS (scores of 2026-11-18). This page is refreshed as NVD updates the record.