LiveActive security incident?Get immediate response
CVE Record

CVE-2021-37637: Null pointer dereference in `CompressElement` in TensorFlow

TensorFlow is an end-to-end open source platform for machine learning. It is possible to trigger a null pointer dereference in TensorFlow by passing an invalid input to `tf.raw_ops.CompressElement`. The [implementation](https://github.com/tensorflow/tensorflow/blob/47a06f40411a69c99f381495f490536972152ac0/tensorflow/core/data/compression_utils.cc#L34) was accessing the size of a buffer obtained from the return of a separate function call before validating that said buffer is valid. We have patched the issue in GitHub commit 5dc7f6981fdaf74c8c5be41f393df705841fb7c5. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

HighCVSS 7.7Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

TensorFlow could dereference a null pointer when `tf.raw_ops.CompressElement` receives invalid input. For organizations using affected TensorFlow versions, the practical concern is disruption or incorrect processing in ML workloads that expose this operation to untrusted or malformed inputs.

Executive priority

Prioritize remediation for ML services or batch systems that process externally supplied data or jobs. The issue is high severity, but the provided evidence does not show active exploitation or remote network exposure.

Technical view

CVE-2021-37637 is a CWE-476 null pointer dereference in TensorFlow `CompressElement`. The vulnerable implementation accessed a buffer size before confirming the returned buffer was valid. TensorFlow patched the issue in commit `5dc7f6981fdaf74c8c5be41f393df705841fb7c5` and planned fixed releases in 2.6.0, 2.5.1, 2.4.3, and 2.3.4.

Likely exposure

Exposure is most likely where affected TensorFlow versions process user-controlled or malformed inputs that can reach `tf.raw_ops.CompressElement`. The CVSS vector is local, so this is not described as directly network-exploitable in the provided sources.

Exploitation context

The source bundle does not report active exploitation, and KEV status is false. The advisory describes a low-complexity local attack condition with no privileges or user interaction required, but does not provide evidence of exploitation in the wild.

Researcher notes

The vulnerability is source-level straightforward: validation occurred after a buffer-derived operation. Research should focus on reachable call paths in deployed workloads, version confirmation, and upgrade verification rather than assuming broader TensorFlow impact beyond the advisory.

Mitigation direction

  • Upgrade TensorFlow to 2.6.0 or a fixed supported branch release.
  • Use TensorFlow 2.5.1, 2.4.3, or 2.3.4 where branch pinning is required.
  • Check TensorFlow’s advisory for any later vendor guidance.
  • Restrict untrusted inputs from reaching raw TensorFlow operations until upgraded.

Validation and detection

  • Inventory deployed TensorFlow versions in applications, notebooks, containers, and ML workers.
  • Flag TensorFlow versions 2.5.0, 2.4.x before 2.4.3, and versions before 2.3.4.
  • Review whether workloads call `tf.raw_ops.CompressElement` or related data compression paths.
  • Confirm dependency locks and runtime images use fixed TensorFlow builds.
  • Run regression tests for affected ML pipelines after upgrading.
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-476: 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-37637 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
High
CVSS
7.7 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/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
7.7CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H2.55.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.7High
CVSS 3.1 vector shape for CVE-2021-37637Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/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.5.0, < 2.5.1, >= 2.4.0, < 2.4.3, < 2.3.4Listed
Weakness

CWE details

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

CWE-476 · source CWE mapping

NULL Pointer Dereference

NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.