CVE-2022-41880
Python vulnerability analysis and mitigation

Overview

CVE-2022-41880 is a heap out-of-bounds vulnerability discovered in TensorFlow, an open-source platform for machine learning. The vulnerability was identified when the BaseCandidateSamplerOp function receives a value in trueclasses larger than rangemax, leading to a heap out-of-bounds read. This security issue affects TensorFlow versions prior to 2.11.0 (GitHub Advisory).

Technical details

The vulnerability occurs in the BaseCandidateSamplerOp function within TensorFlow's candidate sampler operations. When the function receives input values in trueclasses that exceed the rangemax parameter, it triggers a heap out-of-bounds read condition. This can be demonstrated using tf.raw_ops.ThreadUnsafeUnigramCandidateSampler with parameters that exceed the defined range (GitHub Advisory).

Impact

The vulnerability has been classified as Low severity. When exploited, it can lead to a heap out-of-bounds read condition, potentially causing memory corruption or program crashes. The impact is limited to scenarios where the input values in trueclasses exceed the defined rangemax parameter (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple TensorFlow versions. Users are recommended to upgrade to TensorFlow versions 2.8.4, 2.9.3, 2.10.1, or 2.11.0 or later. The fix was implemented in GitHub commit b389f5c944cadfdfe599b3f1e4026e036f30d2d4, which adds input validation for the true_classes parameter (GitHub Advisory).

Community reactions

The vulnerability was discovered and reported by Yu Tian of Qihoo 360 AIVul Team, demonstrating ongoing security research in the machine learning framework ecosystem (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-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 09, 2025
CVE-2025-66645HIGH7.5
  • PythonPython
  • nicegui
NoYesDec 09, 2025
GHSA-9rwj-6rc7-p77cHIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 10, 2025
CVE-2025-67502MEDIUM5.4
  • PythonPython
  • taguette
NoYesDec 10, 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