CVE-2022-41886: TensorFlow CPU Overflow in ImageProjectiveTransformV2
Summary
CVE-2022-41886: Overflow in ImageProjectiveTransformV2. Affects tensorflow-cpu 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 · PyPI
- tensorflow-gpu · 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 library widely used for various applications, including deep learning and neural networks. It provides a comprehensive ecosystem for building and deploying machine learning models. The library includes various operations for image processing, one of which is ImageProjectiveTransformV2. This operation allows users to apply projective transformations to images. However, it is susceptible to an overflow issue when provided with excessively large output shapes, which can lead to unexpected behavior or crashes.
Vulnerability Detail
The vulnerability arises in the ImageProjectiveTransformV2 function of TensorFlow when it is given a large output shape. Specifically, if the output shape exceeds certain limits, it causes an overflow, potentially leading to memory corruption or application crashes. This issue can be exploited by crafting specific input parameters, which may result in denial of service or other unintended consequences. The vulnerability has been identified in TensorFlow versions prior to 2.8.4, 2.9.3, and 2.10.1.
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 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-cpu==2.8.4" -
>= 2.9.0, < 2.9.32.9.3pip install --upgrade "tensorflow-cpu==2.9.3" -
>= 2.10.0, < 2.10.12.10.1pip install --upgrade "tensorflow-cpu==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 mentioned for this vulnerability. Users are advised to avoid using excessively large output shapes with the ImageProjectiveTransformV2 function until they can upgrade to a patched version.
Conclusion
The CVE-2022-41886 vulnerability in TensorFlow's ImageProjectiveTransformV2 function poses a risk due to potential overflow issues when large output shapes are used. Users are encouraged to upgrade to the latest patched versions to ensure their applications remain secure.
See every vulnerability recorded for tensorflow-cpu →
FAQ
CVE-2022-41886 is a vulnerability in TensorFlow's ImageProjectiveTransformV2 function that can lead to overflow issues when large output shapes are provided.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.
The vulnerability affects TensorFlow versions prior to 2.8.4, 2.9.3, and 2.10.1.
The CVSS score for this vulnerability is 4.8, indicating a moderate level of severity.
If you cannot upgrade immediately, avoid using large output shapes with the ImageProjectiveTransformV2 function to mitigate the risk of overflow.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-cpu.