CVE-2022-21736
Python vulnerability analysis and mitigation

Overview

CVE-2022-21736 affects TensorFlow, an Open Source Machine Learning Framework. The vulnerability was discovered in the implementation of SparseTensorSliceDataset, where under certain conditions, it can dereference a nullptr value. The issue was disclosed on February 2, 2022, affecting TensorFlow versions prior to 2.8.0 (GitHub Advisory).

Technical details

The vulnerability exists in the SparseTensorSliceDataset implementation where three input arguments representing a sparse tensor lack proper validation of their preconditions. This can lead to undefined behavior when dereferencing a null pointer. The issue can be triggered with specific input parameters, such as empty indices and values with a defined dense shape (GitHub Advisory).

Impact

When exploited, this vulnerability can cause undefined behavior in TensorFlow applications using the SparseTensorSliceDataset functionality, potentially leading to application crashes or unpredictable behavior (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in TensorFlow 2.8.0 and backported to versions 2.7.1, 2.6.3, and 2.5.3. Users should upgrade to these patched versions. The fix implements proper validation of the sparse tensor inputs through commit 965b97e4a9650495cda5a8c210ef6684b4b9eceb (GitHub Advisory).

Community reactions

The vulnerability was reported by Faysal Hossain Shezan from the University of Virginia and was assigned a Moderate severity rating (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-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 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