CVE-2022-23593: TensorFlow CPU - Denial of Service Vulnerability

tensorflow-cpu Updated 02 Oct 2025

Summary

04/02/2022
Yes i
Unrated
Not published

CVE-2022-23593: Tensorflow is an Open Source Machine Learning Framework. Affects tensorflow-cpu across 2 version ranges.

>= 2.7.0, < 2.8.0 < 35f0fabb4c178253a964d7aabdbb15c6a398b69a

Fixed in 35f0fabb4c178253a964d7aabdbb15c6a398b69a. How to fix ↓

Also tracked for

The same CVE-2022-23593 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

TensorFlow is an open-source machine learning framework widely used for developing and deploying machine learning models. It provides a comprehensive ecosystem for building and training neural networks. TensorFlow CPU is a specific package within TensorFlow that focuses on running TensorFlow models on CPUs. It is commonly used in scenarios where GPU acceleration is not available or required. TensorFlow CPU allows users to leverage the power of TensorFlow on CPU-only systems.

Vulnerability Detail

The simplifyBroadcast function in the MLIR-TFRT infrastructure in TensorFlow CPU is vulnerable to a denial of service (DoS) attack. This vulnerability occurs when the function is called with scalar shapes. If all shapes are scalar, the maxRank value becomes 0, resulting in the creation of an empty SmallVector. This leads to a segmentation fault, causing the application to crash and become unresponsive. The impact of this vulnerability is a complete disruption of service, rendering the affected TensorFlow CPU instance unusable.

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-cpu==2.21.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

35f0fabb4c178253a964d7aabdbb15c6a398b69a

This is the first release that contains the fix.

pip install --upgrade "tensorflow-cpu==35f0fabb4c178253a964d7aabdbb15c6a398b69a"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading to TensorFlow CPU 2.8.0 or later to mitigate the risk of a denial of service attack.

Conclusion

The vulnerability in TensorFlow CPU (CVE-2022-23593) poses a significant risk of denial of service (DoS) attacks. It is crucial for users to upgrade to TensorFlow CPU 2.8.0 or later to ensure the proper handling of scalar shapes and prevent the application from crashing. Applying the recommended fix will mitigate the risk and maintain the stability and availability of TensorFlow CPU instances. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow-cpu →

Share this vulnerability

FAQ

TensorFlow CPU is a package within the TensorFlow framework that allows users to run TensorFlow models on CPU-only systems. It provides the same functionality as TensorFlow but without GPU acceleration.

The vulnerability in TensorFlow CPU can lead to a denial of service (DoS) attack. If exploited, it can cause the application to crash and become unresponsive, resulting in a complete disruption of service.

The vulnerability affects TensorFlow CPU versions prior to 2.8.0. Users running versions earlier than 2.8.0 are advised to upgrade to the latest version to mitigate the risk.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading to TensorFlow CPU 2.8.0 or later.

For more information about this vulnerability, you can refer to the official TensorFlow GitHub repository and the associated advisory in the PyPA Advisory Database.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow-cpu.

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-cpu==2.21.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

35f0fabb4c178253a964d7aabdbb15c6a398b69a

This is the first release that contains the fix.

pip install --upgrade "tensorflow-cpu==35f0fabb4c178253a964d7aabdbb15c6a398b69a"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback