CVE-2022-23566
Python vulnerability analysis and mitigation

Overview

TensorFlow was found to be vulnerable to a heap out-of-bounds write vulnerability in the Grappler component (CVE-2022-23566). The vulnerability was discovered and disclosed in February 2022. The issue affects TensorFlow versions prior to 2.8.0, including versions 2.5.x, 2.6.x, and 2.7.x. The vulnerability stems from the set_output function which writes to an array at a specified index without proper bounds checking (GitHub Advisory).

Technical details

The vulnerability exists in the SetUnknownShape function within the Grappler component. The function calls set_output which performs an array write operation at a specified index without proper validation of the output port parameter. This implementation could allow an attacker to write outside the bounds of the allocated array. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability provides a malicious user with a write primitive that could be exploited to perform out-of-bounds writes on the heap. This could potentially lead to code execution, data corruption, or system crashes. Given the CVSS score and vector, the vulnerability can lead to high impacts on confidentiality, integrity, and availability of the affected system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in TensorFlow version 2.8.0. The fix has also been backported to versions 2.7.1, 2.6.3, and 2.5.3. Users are advised to upgrade to these patched versions. The fix was implemented in GitHub commit 97282c6d0d34476b6ba033f961590b783fa184cd, which adds proper validation of the output port parameter (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

GHSA-5882-5rx9-xgxpCRITICAL10
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
GHSA-vx9w-5cx4-9796HIGH8.6
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • pyasn1
NoYesJan 16, 2026
CVE-2026-23528MEDIUM5.3
  • PythonPython
  • distributed
NoYesJan 16, 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