LiveActive security incident?Get immediate response
CVE Record

CVE-2021-37686: Infinite loop in TensorFlow Lite

TensorFlow is an end-to-end open source platform for machine learning. In affected versions the strided slice implementation in TFLite has a logic bug which can allow an attacker to trigger an infinite loop. This arises from newly introduced support for [ellipsis in axis definition](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/strided_slice.cc#L103-L122). An attacker can craft a model such that `ellipsis_end_idx` is smaller than `i` (e.g., always negative). In this case, the inner loop does not increase `i` and the `continue` statement causes execution to skip over the preincrement at the end of the outer loop. We have patched the issue in GitHub commit dfa22b348b70bb89d6d6ec0ff53973bacb4f4695. TensorFlow 2.6.0 is the only affected version.

MediumCVSS 5.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue can make TensorFlow Lite hang when processing a specially crafted model. The impact is denial of service, not data theft or code execution. Business urgency is highest where services accept or run models from users, partners, or automated pipelines using the affected TensorFlow 2.6.0 release range.

Executive priority

Treat as a moderate availability risk. Prioritize remediation for ML services that process external models or run in shared production workflows. For internal-only trusted model pipelines, handle through normal patch cycles after confirming version exposure.

Technical view

CVE-2021-37686 is a CWE-835 infinite loop in TensorFlow Lite strided slice ellipsis handling. A crafted model can cause loop control to skip progress, consuming execution indefinitely. Sources list affected versions as TensorFlow >=2.6.0rc0 and <2.6.0rc2, with a patch in commit dfa22b348b70bb89d6d6ec0ff53973bacb4f4695.

Likely exposure

Exposure is most likely in applications embedding TensorFlow Lite that load untrusted or externally supplied models. Systems only using trusted, internally controlled models have lower practical risk, but should still verify dependency versions against the affected range.

Exploitation context

The CVSS vector is local, low complexity, low privileges, no user interaction, and availability-only. The provided bundle does not show CISA KEV listing or any confirmed active exploitation. Exploitation requires the vulnerable TensorFlow Lite code path to process a crafted model.

Researcher notes

The source evidence is consistent on the bug class, affected component, and patch commit, but limited on real-world exploitation and downstream product exposure. Avoid broad product claims without local inventory confirming affected TensorFlow Lite usage.

Mitigation direction

  • Upgrade TensorFlow beyond the affected 2.6.0 release-candidate range.
  • Apply the vendor patch commit if maintaining a custom TensorFlow build.
  • Restrict loading of untrusted TFLite models until upgraded.
  • Check TensorFlow advisory updates for any additional vendor guidance.

Validation and detection

  • Inventory TensorFlow and TensorFlow Lite versions in applications and images.
  • Confirm no deployed component uses TensorFlow >=2.6.0rc0 and <2.6.0rc2.
  • Identify services that accept third-party or user-supplied TFLite models.
  • Verify SBOM and dependency scanners flag the affected version range.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-835: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-37686 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.5CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H1.83.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.5Medium
CVSS 3.1 vector shape for CVE-2021-37686Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
tensorflowtensorflow>= 2.6.0rc0, < 2.6.0rc2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-835 · source CWE mapping

Loop with Unreachable Exit Condition ('Infinite Loop')

Loop with Unreachable Exit Condition ('Infinite Loop') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.