CVE-2022-29192: TensorFlow Denial of Service Vulnerability in QuantizeAndDequantizeV4Grad
Summary
CVE-2022-29192: Missing validation crashes QuantizeAndDequantizeV4Grad. Affects tensorflow across 3 version ranges.
< 2.6.4
>= 2.7.0, < 2.7.2
>= 2.8.0, < 2.8.1
Fixed in 2.6.4, 2.7.2 or 2.8.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-29192 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 various applications including deep learning and neural networks. It provides a flexible ecosystem of tools, libraries, and community resources that allow researchers and developers to build and deploy machine learning models. However, like any software, TensorFlow can have vulnerabilities that may affect its functionality and security.
Vulnerability Detail
The vulnerability arises from the implementation of the tf.raw_ops.QuantizeAndDequantizeV4Grad function, which lacks proper validation of input arguments. This oversight can lead to a CHECK-failure, potentially allowing an attacker to exploit this flaw and trigger a denial of service (DoS) attack. Specifically, the function assumes that input_min and input_max are scalars, but this assumption is not validated, leading to crashes when invalid inputs are provided.
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.6.42.6.4pip install --upgrade "tensorflow==2.6.4" -
>= 2.7.0, < 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"
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
Currently, there are no specific workarounds provided for this vulnerability. It is advisable to update to the patched versions mentioned above to mitigate the risk.
Conclusion
In summary, CVE-2022-29192 is a significant vulnerability in TensorFlow that can lead to denial of service due to improper input validation in the QuantizeAndDequantizeV4Grad function. Users are strongly advised to update to the latest patched versions to ensure their applications remain secure.
See every vulnerability recorded for tensorflow →
FAQ
CVE-2022-29192 is a vulnerability in TensorFlow's QuantizeAndDequantizeV4Grad function that can lead to a denial of service due to missing input validation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
The vulnerability affects TensorFlow versions prior to 2.6.4, 2.7.2, 2.8.1, and 2.9.0. It is crucial to upgrade to these patched versions.
The CVSS score of this vulnerability is 5.5, indicating a moderate level of severity.
This vulnerability was reported by Neophytos Christou from the Secure Systems Lab at Brown University.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.