CVE-2022-41886: TensorFlow GPU Overflow in ImageProjectiveTransformV2
Summary
CVE-2022-41886: Overflow in ImageProjectiveTransformV2. Affects tensorflow-gpu across 3 version ranges.
< 2.8.4
>= 2.9.0, < 2.9.3
>= 2.10.0, < 2.10.1
Fixed in 2.8.4, 2.9.3 or 2.10.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow-cpu · PyPI
- tensorflow · PyPI
- tensorflow · Bitnami
- tensorflow · PyPI
The same CVE-2022-41886 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 framework that provides a comprehensive ecosystem for building and deploying machine learning models. The 'tensorflow-gpu' package enables users to leverage GPU acceleration for their TensorFlow applications, enhancing performance for computationally intensive tasks. However, like any complex software, TensorFlow is susceptible to vulnerabilities that can impact its functionality and security.
Vulnerability Detail
The vulnerability identified as CVE-2022-41886 arises from an overflow issue in the 'ImageProjectiveTransformV2' operation within TensorFlow. When this operation is provided with a large output shape, it can lead to an overflow, potentially causing unexpected behavior or crashes in applications that rely on this functionality. This issue can be exploited by passing excessively large values for the output shape parameter, which can disrupt the normal operation of the software and may lead to denial of service or other unintended consequences.
How To Fix
Latest published version: 2.12.0 as of 22 Oct 2026
pip install --upgrade "tensorflow-gpu==2.12.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.8.42.8.4pip install --upgrade "tensorflow-gpu==2.8.4" -
>= 2.9.0, < 2.9.32.9.3pip install --upgrade "tensorflow-gpu==2.9.3" -
>= 2.10.0, < 2.10.12.10.1pip install --upgrade "tensorflow-gpu==2.10.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. However, users are advised to avoid using excessively large output shapes when calling the 'ImageProjectiveTransformV2' operation until they can update to a patched version.
Conclusion
CVE-2022-41886 is a significant vulnerability in TensorFlow's 'ImageProjectiveTransformV2' operation that can lead to overflow issues when large output shapes are specified. Users are encouraged to update to the latest patched versions of the 'tensorflow-gpu' package to mitigate this risk. Regular monitoring and updates are essential for maintaining the security of applications using TensorFlow.
See every vulnerability recorded for tensorflow-gpu →
FAQ
CVE-2022-41886 is a vulnerability in TensorFlow's 'ImageProjectiveTransformV2' operation that can lead to an overflow when large output shapes are specified.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Exploiting this vulnerability can lead to application crashes or unexpected behavior, potentially resulting in denial of service.
You can update TensorFlow by running the command 'pip install --upgrade tensorflow-gpu==2.10.1' to ensure you have the patched version.
There are no specific workarounds available. It is recommended to avoid using large output shapes until the package is updated.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-gpu.