CVE-2022-23571
Python vulnerability analysis and mitigation

Overview

CVE-2022-23571 affects TensorFlow, an Open Source Machine Learning Framework. The vulnerability was discovered and disclosed in February 2022, where a TensorFlow process could encounter CHECK assertion failures when decoding tensors from protobuf with invalid dtype and 0 elements or invalid shape. This vulnerability affects TensorFlow versions prior to 2.8.0, including versions 2.5.x, 2.6.x, and 2.7.x (GitHub Advisory, NVD).

Technical details

The vulnerability occurs during the tensor decoding process from protobuf, specifically when handling tensors with invalid dtype and either 0 elements or an invalid shape. The issue involves a CHECK assertion that can be invalidated through user-controlled arguments. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The exploitation of this vulnerability can lead to denial of service in TensorFlow processes. When successfully exploited, attackers can cause the TensorFlow process to crash by providing specially crafted input that triggers the CHECK assertion failure (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions: TensorFlow 2.8.0 includes the complete fix, while the patch has also been backported to versions 2.7.1, 2.6.3, and 2.5.3. Users are advised to upgrade to these patched versions. The fix involves validating proto.dtype() before calling set_dtype() to prevent the CHECK-fail condition (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hmj8-5xmh-5573HIGH7.5
  • Python logoPython
  • libp2p
NoNoJul 24, 2026
GHSA-94p4-4cq8-9g67HIGH7.5
  • Python logoPython
  • gitpython
NoYesJul 24, 2026
GHSA-47w6-gwp4-w6vcHIGH7.1
  • Python logoPython
  • vantage6
NoNoJul 24, 2026
CVE-2026-59714HIGH7.1
  • Python logoPython
  • open-webui
NoYesJul 24, 2026
GHSA-464c-974j-9xm6LOW3.3
  • JavaScript logoJavaScript
  • software.amazon.awscdk:aws-cdk-lib
NoYesJul 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management