SecurityContext

CVE-2021-29582: TensorFlow - Out-of-Bounds Read

  • Cve: CVE-2021-29582
  • Name: TensorFlow - Out-of-Bounds Read
  • Description: TensorFlow is an end-to-end open source platform for machine learning. Due to lack of validation in `tf.raw_ops.Dequantize`, an attacker can trigger a read from outside of bounds of heap allocated data. The implementation(https://github.com/tensorflow/tensorflow/blob/26003593aa94b1742f34dc22ce88a1e17776a67d/tensorflow/core/kernels/dequantize_op.cc#L106-L131) accesses the `min_range` and `max_range` tensors in parallel but fails to check that they have the same shape. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
  • Impact: Attackers can trigger out-of-bounds reads, potentially leading to information disclosure or memory corruption.
  • Remediation: Update to TensorFlow 2.5.0 or apply the cherrypick fix to affected versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4.
  • Vulnerability type: out_of_bounds_rw
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
  • Epss score: 0.00198
  • Epss percentile: 0.09466
  • Assignee: [email protected]
  • Published at: 2021-05-14T20:15:14Z
  • Age in days: 2020
  • Modified at: 2026-06-17T03:47:57Z
  • 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-29582
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-125Out-of-bounds Read

Public exploits

UrlSourceAdded date
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c45w-2wxr-pp53nvd2021-05-14

References

UrlSourceTags
https://github.com/tensorflow/tensorflow/commit/5899741d0421391ca878da47907b1452f06aaf1bnvdPatch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c45w-2wxr-pp53nvdExploit, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow>= 2.4.0, < 2.4.2; >= 2.3.0, < 2.3.3; >= 2.2.0, < 2.2.3; < 2.1.4nonvd/v1/products/google/tensorflow

Projects

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

Index

  • Repositories: 331
  • Repositories high signal: 130
  • Packages: 3

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-05-14
  • 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