CVE-2022-35995: TensorFlow Denial of Service Vulnerability in AudioSummaryV2
Summary
CVE-2022-35995: TensorFlow vulnerable to CHECK fail in AudioSummaryV2. Affects tensorflow across 3 version ranges.
< 2.7.2
>= 2.8.0, < 2.8.1
>= 2.9.0, < 2.9.1
Fixed in 2.7.2, 2.8.1 or 2.9.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow-cpu · PyPI
- tensorflow-gpu · PyPI
- tensorflow · Bitnami
The same CVE-2022-35995 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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.
No signup required · Results in about 60 seconds
Background
TensorFlow is an open-source machine learning library developed by Google, widely used for building and training machine learning models. It provides a flexible architecture and a comprehensive ecosystem for various applications, including deep learning and neural networks. However, TensorFlow has been found to have a vulnerability in the AudioSummaryV2 function, which can lead to denial of service attacks if exploited.
Vulnerability Detail
The vulnerability arises when the AudioSummaryV2 function receives an input sample_rate with more than one element. This condition triggers a CHECK failure, which can be exploited to cause a denial of service. An attacker could craft a specific input that leads to this failure, effectively disrupting the service and making it unavailable to legitimate users. The technical details indicate that the vulnerability is present in TensorFlow versions prior to 2.7.2, 2.8.1, and 2.9.1.
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 versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 2.7.22.7.2pip install --upgrade "tensorflow==2.7.2" -
>= 2.8.0, < 2.8.12.8.1pip install --upgrade "tensorflow==2.8.1" -
>= 2.9.0, < 2.9.12.9.1pip install --upgrade "tensorflow==2.9.1"
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
As a temporary workaround, avoid using the AudioSummaryV2 function with a sample_rate that contains more than one element. Here is an example of how to correctly use the function with a single element sample_rate:
import tensorflow as tf arg_0='' arg_1=tf.random.uniform(shape=(1,1), dtype=tf.float32, maxval=None) arg_2=tf.constant(44100, dtype=tf.int32) # Use a single element sample rate arg_3=3 arg_4='' tf.raw_ops.AudioSummaryV2(tag=arg_0, tensor=arg_1, sample_rate=arg_2, max_outputs=arg_3, name=arg_4)
Conclusion
In summary, CVE-2022-35995 is a significant vulnerability in TensorFlow's AudioSummaryV2 function that can lead to denial of service. It is crucial for users to update to the latest patched versions to mitigate this risk. Additionally, using Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for tensorflow →
FAQ
CVE-2022-35995 is a vulnerability in TensorFlow's AudioSummaryV2 function that can lead to denial of service when an invalid sample_rate input is provided.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
TensorFlow versions prior to 2.7.2, 2.8.1, and 2.9.1 are affected by this vulnerability.
You can update TensorFlow to the patched version by running the command: pip install --upgrade tensorflow.
The CVSS score of this vulnerability is 5.9, indicating a moderate level of risk.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.