Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2022-29193 — tensorflow

🟡 CVSS 5.0 — Medium ⚠️ Exploit Public CWE-20 OSV
5.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Missing validation causes TensorSummaryV2 to crash

Impact

The implementation of [tf.raw_ops.TensorSummaryV2](https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/summary_tensor_op.cc#L33-L58) does not fully validate the input arguments. This results in a CHECK-failure which can be used to trigger a denial of service attack:

```python

import numpy as np

import tensorflow as tf

tf.raw_ops.TensorSummaryV2(

tag=np.array('test'),

tensor=np.array(3),

serialized_summary_metadata=tf.io.encode_base64(np.empty((0))))

```

The code assumes axis is a scalar but there is no validation for this.

```cc

const Tensor& serialized_summary_metadata_tensor = c->input(2);

// ...

ParseFromTString(serialized_summary_metadata_tensor.scalar<tstring>()(),

v->mutable_metadata());

```

Patches

We have patched the issue in GitHub commit [290bb05c80c327ed74fae1d089f1001b1e2a4ef7](https://github.com/tensorflow/tensorflow/commit/290bb05c80c327ed74fae1d089f1001b1e2a4ef7).

The fix will be included in TensorFlow 2.9.0. We will also cherrypick this commit on TensorFlow 2.8.1, TensorFlow 2.7.2, and TensorFlow 2.6.4, as these are also affected and still in supported range.

For more information

Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Neophytos Christou from Secure Systems Lab at Brown University and Hong Jin from Singapore Management University.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

CVE-2022-29193 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.

Affected software

CVE-2022-29193 is recorded against 3 packages.

  • tensorflow
  • tensorflow-cpu (from 2.8.0 up to 2.8.1)
  • tensorflow-gpu (from 2.8.0 up to 2.8.1)

Timeline and source

Published on 6 March 2024 and last revised on 13 July 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
nvd.nist.gov (Web)

Other advisories for this package

tensorflow has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-20: Improper Input Validation) in other software:

Details

Severity MEDIUM
CVSS Score 5.0
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE CWE-20
Public Exploit ⚠️ Yes
Source OSV
Published 2024-03-06
Updated 2026-08-20
Modified 2026-07-13

Affected Packages

Software From version Fixed in
tensorflow
tensorflow-cpu 2.8.0 2.8.1
tensorflow-gpu 2.8.0 2.8.1

Similar Threats

Exploit Protection

Are you running tensorflow?

CVE-2022-29193 carries CVSS 5.0 Medium rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2022-29193 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2022