CVE-2022-35991
Python vulnerability analysis and mitigation

Overview

A vulnerability was discovered in TensorFlow's TensorListScatter and TensorListScatterV2 functions that could lead to a denial of service condition. The vulnerability, tracked as CVE-2022-35991, was identified in TensorFlow versions prior to 2.10.0 and affects the pip packages tensorflow, tensorflow-cpu, and tensorflow-gpu. The issue was discovered by 刘力源 from the Information System & Security and Countermeasures Experiments Center at Beijing Institute of Technology (GitHub Advisory).

Technical details

The vulnerability occurs when TensorListScatter and TensorListScatterV2 functions receive an element_shape parameter with a rank greater than one, resulting in a CHECK fail condition. This can be triggered by passing a tensor with shape (2, 2, 2) as the element_shape parameter to these functions. The issue was addressed by adding validation to ensure element_shape must be at most rank 1 (GitHub Commit).

Impact

When successfully exploited, this vulnerability can trigger a denial of service condition in applications using the affected TensorFlow functions. The severity of this vulnerability has been rated as Low (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in TensorFlow versions 2.7.4, 2.8.3, 2.9.2, and 2.10.0. Users are advised to upgrade to these patched versions. The fix implements input validation to ensure element_shape parameter is at most rank 1 (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-22033HIGH8.6
  • PythonPython
  • label-studio
NoNoJan 12, 2026
CVE-2025-68472HIGH8.1
  • PythonPython
  • mindsdb
NoYesJan 12, 2026
CVE-2026-22251MEDIUM5.3
  • PythonPython
  • wlc
NoYesJan 12, 2026
CVE-2026-22691LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 2026
CVE-2026-22250LOW2.5
  • PythonPython
  • wlc
NoYesJan 12, 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