CVE-2022-23591
Python vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2022-23591) affects TensorFlow, an Open Source Machine Learning Framework. The issue was discovered in versions prior to 2.8.0, where the GraphDef format incorrectly handled self-recursive functions, leading to potential security risks. The vulnerability was disclosed on February 2, 2022, affecting multiple versions of TensorFlow including versions up to 2.5.2, 2.6.0 through 2.6.2, and version 2.7.0 (GitHub Advisory).

Technical details

The vulnerability stems from the GraphDef format's inability to properly handle self-recursive functions, despite the runtime assuming this invariant is satisfied. When loading a SavedModel, a GraphDef containing self-recursive function definitions can be processed, which leads to a stack overflow condition during execution. This occurs because resolving each NodeDef requires resolving the function itself and its nodes, creating an infinite recursive loop (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The primary impact of this vulnerability is on system availability. When exploited, the vulnerability can cause a stack overflow during execution, potentially leading to system crashes or denial of service conditions (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions of TensorFlow. The fix was included in TensorFlow 2.8.0 and backported to versions 2.7.1, 2.6.3, and 2.5.3. Users are advised to upgrade to these patched versions. The fix implements validation checks to prevent self-recursive functions in the GraphDef format (GitHub Advisory, GitHub Commit).

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-66645HIGH7.5
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-66470MEDIUM6.1
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-66469MEDIUM6.1
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-67502MEDIUM5.4
  • PythonPython
  • taguette
NoYesDec 09, 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