CVE-2022-41886: TensorFlow CPU Overflow in ImageProjectiveTransformV2

tensorflow-cpu Updated 18 Jul 2026

Summary

13/07/2026
Yes i
Medium
4.8

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

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.

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 Your last release was probably never penetration tested 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 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.4 2.8.4
    pip install --upgrade "tensorflow-cpu==2.8.4"
  • >= 2.9.0, < 2.9.3 2.9.3
    pip install --upgrade "tensorflow-cpu==2.9.3"
  • >= 2.10.0, < 2.10.1 2.10.1
    pip 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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow-cpu.

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.4 2.8.4
    pip install --upgrade "tensorflow-cpu==2.8.4"
  • >= 2.9.0, < 2.9.3 2.9.3
    pip install --upgrade "tensorflow-cpu==2.9.3"
  • >= 2.10.0, < 2.10.1 2.10.1
    pip 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 →

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