CVE-2022-23590: TensorFlow Crash due to Erroneous StatusOr

tensorflow Updated 02 Oct 2025

Summary

09/02/2022
Yes i
Moderate
5.9

CVE-2022-23590: Crash due to erroneous StatusOr in TensorFlow. Affects tensorflow versions < 2.7.1. Fixed in 2.7.1. How to fix ↓

Also tracked for

The same CVE-2022-23590 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. However, a vulnerability has been discovered in TensorFlow that can lead to a crash in certain scenarios.

Vulnerability Detail

The vulnerability (CVE-2022-23590) in TensorFlow arises from an erroneous implementation of the StatusOr mechanism. Specifically, a GraphDef from a TensorFlow SavedModel can be manipulated to cause a TensorFlow process to crash. This occurs when encountering a StatusOr value that is an error and forcibly extracting the value from it. The vulnerable code snippet can be found in the TensorFlow source code.

The impact of this vulnerability is a denial-of-service (DoS) condition, where a maliciously crafted GraphDef can crash a TensorFlow process. This can disrupt the availability of TensorFlow-based applications and services. The vulnerability has a CVSS score of 5.9, indicating a moderate severity level.

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow==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

2.7.1

This is the first release that contains the fix.

pip install --upgrade "tensorflow==2.7.1"

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

Workaround

There is no specific workaround provided for this vulnerability. The recommended approach is to apply the available patch by updating TensorFlow to a patched version.

Conclusion

The vulnerability in TensorFlow (CVE-2022-23590) can result in a crash of TensorFlow processes, leading to a denial-of-service condition. Users are advised to update their TensorFlow installations to the patched versions (2.8.0 or 2.7.1) to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open-source machine learning framework developed by Google. It provides tools and resources for building and deploying machine learning models.

The vulnerability can lead to a denial-of-service (DoS) condition, causing TensorFlow processes to crash and potentially disrupting the availability of TensorFlow-based applications and services.

To fix this vulnerability, update your TensorFlow installation to version 2.8.0 or 2.7.1, which include the necessary patches.

No specific workaround is provided. It is recommended to update TensorFlow to a patched version.

The vulnerability has a CVSS score of 5.9, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow==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

2.7.1

This is the first release that contains the fix.

pip install --upgrade "tensorflow==2.7.1"

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