SecurityContext

CVE-2022-23591: TensorFlow - Buffer Overflow

  • Cve: CVE-2022-23591
  • Name: TensorFlow - Buffer Overflow
  • Description: Tensorflow is an Open Source Machine Learning Framework. The `GraphDef` format in TensorFlow does not allow self recursive functions. The runtime assumes that this invariant is satisfied. However, a `GraphDef` containing a fragment such as the following can be consumed when loading a `SavedModel`. This would result in a stack overflow during execution as resolving each `NodeDef` means resolving the function itself and its nodes. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
  • Impact: Attackers can cause a stack overflow leading to denial of service or potential arbitrary code execution during model loading.
  • Remediation: Update to TensorFlow 2.8.0 or apply the cherrypick patches to versions 2.7.1, 2.6.3, and 2.5.3.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00795
  • Epss percentile: 0.57372
  • Assignee: [email protected]
  • Published at: 2022-02-04T23:15:15Z
  • Age in days: 1754
  • Modified at: 2026-06-17T04:30:25Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-23591
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-400Uncontrolled Resource Consumption
CWE-674Uncontrolled Recursion

References

UrlSourceTags
https://github.com/tensorflow/tensorflow/commit/448a16182065bd08a202d9057dd8ca541e67996cnvdPatch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-247x-2f9f-5wp7nvdPatch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
google:tensorflow= 2.7.0; >= 2.6.0, <= 2.6.2; <= 2.5.2nonvd/v1/products/google/tensorflow

Projects

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

Index

  • Repositories: 352
  • Repositories high signal: 135
  • Packages: 3

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts