CVE-2021-37686
Python vulnerability analysis and mitigation

Overview

TensorFlow is an end-to-end open source platform for machine learning. In version 2.6.0, the strided slice implementation in TFLite contained a logic bug which could allow an attacker to trigger an infinite loop. This vulnerability was assigned CVE-2021-37686 and was discovered in August 2021 (GitHub Advisory).

Technical details

The vulnerability arose from newly introduced support for ellipsis in axis definition in the TFLite strided slice implementation. The bug occurred in a loop where an attacker could craft a model such that ellipsis_end_idx would be smaller than i (e.g., always negative). In this case, the inner loop would not increase i and the continue statement would cause execution to skip over the preincrement at the end of the outer loop, resulting in an infinite loop (GitHub Advisory).

Impact

The vulnerability could allow attackers to trigger an infinite loop in TensorFlow Lite, potentially causing a denial of service condition in applications using the affected version (GitHub Advisory).

Mitigation and workarounds

The issue was patched in TensorFlow version 2.6.0 through GitHub commit dfa22b348b70bb89d6d6ec0ff53973bacb4f4695. Users should upgrade to the patched version. TensorFlow 2.6.0 was the only affected version (GitHub Advisory).

Community reactions

The vulnerability was reported by members of the Aivul Team from Qihoo 360, demonstrating ongoing security research in the machine learning framework space (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