SecurityContext

CVE-2021-41225: TensorFlow - Undefined Behavior

  • Cve: CVE-2021-41225
  • Name: TensorFlow - Undefined Behavior
  • Description: TensorFlow is an open source platform for machine learning. In affected versions TensorFlow's Grappler optimizer has a use of unitialized variable. If the `train_nodes` vector (obtained from the saved model that gets optimized) does not contain a `Dequeue` node, then `dequeue_node` is left unitialized. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
  • Impact: Potential for undefined behavior or exploitation due to use of uninitialized variable in the optimizer.
  • Remediation: Update to TensorFlow 2.7.0 or apply the cherrypick patches to versions 2.6.1, 2.5.2, and 2.4.4.
  • Requirements: Exploit requires specific model structure
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00196
  • Epss percentile: 0.09268
  • Assignee: [email protected]
  • Published at: 2021-11-05T23:15:08Z
  • Age in days: 1845
  • Modified at: 2026-06-17T04:08:07Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-41225
  • Nvd status: modified
  • Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirement type, hackerone

Cwe

IdName
CWE-908Use of Uninitialized Resource

Public exploits

UrlSourceAdded date
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-7r94-xv9v-63jwnvd2021-11-05

References

UrlSourceTags
https://github.com/tensorflow/tensorflow/commit/68867bf01239d9e1048f98cbad185bf4761bedd3nvdPatch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-7r94-xv9v-63jwnvdExploit, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow= 2.7.0 rc0; = 2.7.0 rc1; >= 2.6.0, < 2.6.1; >= 2.5.0, < 2.5.2; >= 2.4.0, < 2.4.4nonvd/v1/products/google/tensorflow

Projects

RepositoryLink kindsIndexedUrl
tensorflow/tensorflowcommit, fix, package, security_advisoryyes/v1/repositories/tensorflow/tensorflow

Index

  • Repositories: 347
  • Repositories high signal: 134
  • Packages: 3

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-11-05
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts