CVE-2022-41895
Python vulnerability analysis and mitigation

Overview

TensorFlow, an open source platform for machine learning, was found to contain a vulnerability (CVE-2022-41895) where if MirrorPadGrad is given outsize input paddings, it results in a heap out-of-bounds (OOB) error. The vulnerability was discovered by Yu Tian from Qihoo 360 AIVul Team and was patched in TensorFlow versions 2.8.4, 2.9.3, 2.10.1, and 2.11.0 (GitHub Advisory).

Technical details

The vulnerability exists in the MirrorPadGrad operation of TensorFlow. When the operation receives paddings input that exceeds the expected size, it triggers a heap out-of-bounds error. The issue can be reproduced using the following code: tf.raw_ops.MirrorPadGrad(input=[1], paddings=[[0x77f00000,0xa000000]], mode = 'REFLECT'). The fix was implemented in GitHub commit 717ca98d8c3bba348ff62281fdf38dcb5ea1ec92, which added missing requirements on inputs for the MirrorPadGrad operation and updated arithmetic to account for int32 padding values (GitHub Commit).

Impact

The vulnerability could lead to heap out-of-bounds errors when processing certain inputs in TensorFlow applications. This could potentially result in program crashes or denial of service conditions (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to the patched versions: TensorFlow 2.11.0, 2.10.1, 2.9.3, or 2.8.4. The fix has been implemented across all supported versions of TensorFlow (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-22612HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22609HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22608HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22691LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 2026
CVE-2026-22690LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 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