CVE-2022-29207
Python vulnerability analysis and mitigation

Overview

TensorFlow, an open source platform for machine learning, was found to have a vulnerability (CVE-2022-29207) affecting versions prior to 2.9.0, 2.8.1, 2.7.2, and 2.6.4. Multiple TensorFlow operations misbehave in eager mode when the resource handle provided to them is invalid. While these API calls would have been impossible in graph mode, the migration to TF 2.x eager mode exposed this vulnerability (GitHub Advisory).

Technical details

The vulnerability occurs when an empty resource handle is provided to certain TensorFlow operations in eager mode, causing a reference to be bound to a null pointer inside the TensorFlow codebase. This results in undefined behavior. The issue can be triggered through various codepaths, for example when calling tf.raw_ops.QueueIsClosedV2(handle=[]) or tf.summary.flush(writer=()). The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 MEDIUM (Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) (NVD).

Impact

The vulnerability can lead to undefined behavior when exploited, potentially causing application crashes or denial of service conditions. The impact is limited to local attacks and requires low privileges to execute (NVD).

Mitigation and workarounds

The vulnerability has been patched in TensorFlow versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4. Users are recommended to upgrade to these patched versions. The fixes were implemented in GitHub commits a5b89cd68c02329d793356bda85d079e9e69b4e7 and dbdd98c37bc25249e8f288bd30d01e118a7b4498 (GitHub 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-2026-50271HIGH7.5
  • Python logoPython
  • ddtrace
NoYesJul 17, 2026
CVE-2026-54559MEDIUM6.9
  • Python logoPython
  • pocketsphinx
NoYesJul 17, 2026
GHSA-mfr4-mq8w-vmg6MEDIUM6.6
  • Python logoPython
  • proot-distro
NoYesJul 17, 2026
CVE-2026-47144MEDIUM5.5
  • JavaScript logoJavaScript
  • shamefile
NoYesJul 20, 2026
CVE-2026-46715MEDIUM5.3
  • Python logoPython
  • flask-security-too
NoYesJul 20, 2026

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