CVE-2022-29208
Python vulnerability analysis and mitigation

Overview

CVE-2022-29208 affects the implementation of tf.raw_ops.EditDistance in TensorFlow versions prior to 2.9.0. The vulnerability was discovered in May 2022 and impacts TensorFlow's core functionality. The issue was patched in versions 2.6.4, 2.7.2, 2.8.1, and 2.9.0 (GitHub Advisory).

Technical details

The vulnerability stems from incomplete validation in the EditDistance operation. The implementation only checks against the upper bound of the array when computing an index for write operations, but fails to validate against negative values. This allows users to pass negative values that can cause buffer underflow. The vulnerability exists in multiple code locations where index computation is performed using std::inner_product without proper bounds checking (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to a segmentation fault resulting in denial of service. Additionally, it can cause out-of-bounds write operations before the intended array location due to the ability to generate negative index values (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in multiple TensorFlow versions: 2.6.4, 2.7.2, 2.8.1, and 2.9.0. The fix was implemented in GitHub commit 30721cf564cb029d34535446d6a5a6357bebc8e7, which adds validation to ensure that computed indices are non-negative (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

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