CVE-2022-21733
Python vulnerability analysis and mitigation

Overview

The CVE-2022-21733 vulnerability affects TensorFlow, an Open Source Machine Learning Framework. The vulnerability was discovered in the implementation of StringNGrams and was disclosed on February 2, 2022. The issue affects TensorFlow versions prior to 2.8.0, with patched versions including 2.5.3, 2.6.3, and 2.7.1 (TF Advisory).

Technical details

The vulnerability stems from missing validation on the padwidth parameter in the StringNGrams implementation. This oversight can result in computing a negative value for ngramwidth, which is later used for output allocation. The issue can lead to an integer overflow condition (TF Advisory).

Impact

When exploited, this vulnerability can trigger a denial of service attack by causing an Out of Memory (OOM) condition after an integer overflow occurs. This can affect the availability of systems running vulnerable versions of TensorFlow (TF Advisory).

Mitigation and workarounds

The issue has been patched in GitHub commit f68fdab93fb7f4ddb4eb438c8fe052753c9413e8 and included in TensorFlow version 2.8.0. The fix was also backported to versions 2.7.1, 2.6.3, and 2.5.3. Users should upgrade to these patched versions to mitigate the vulnerability (TF Advisory).

Community reactions

The vulnerability was reported by Yu Tian of Qihoo 360 AIVul Team and was rated as having a Moderate severity impact (TF Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 09, 2025
CVE-2025-66645HIGH7.5
  • PythonPython
  • nicegui
NoYesDec 09, 2025
GHSA-9rwj-6rc7-p77cHIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 10, 2025
CVE-2025-67502MEDIUM5.4
  • PythonPython
  • taguette
NoYesDec 10, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management