SecurityContext

CVE-2022-21738: TensorFlow - Integer Overflow

  • Cve: CVE-2022-21738
  • Name: TensorFlow - Integer Overflow
  • Description: Tensorflow is an Open Source Machine Learning Framework. The implementation of `SparseCountSparseOutput` can be made to crash a TensorFlow process by an integer overflow whose result is then used in a memory allocation. 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 denial of service by crashing the TensorFlow process.
  • Remediation: Update to TensorFlow 2.8.0 or cherry-pick the fix for versions 2.7.1, 2.6.3, and 2.5.3.
  • Vulnerability type: integer_overflow
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00789
  • Epss percentile: 0.57188
  • Assignee: [email protected]
  • Published at: 2022-02-03T14:15:08Z
  • Age in days: 1755
  • Modified at: 2026-06-17T04:26:53Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21738
  • 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-190Integer Overflow or Wraparound

Public exploits

UrlSourceAdded date
https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/count_ops.cc#L168-L273nvd2022-02-03

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/tensorflow/tensorflow/commit/6f4d3e8139ec724dbbcb40505891c81dd1052c4aPatch, Third Party Advisory
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-x4qx-4fjv-hmw6Patch, Third Party Advisory
https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/count_ops.cc#L168-L273Exploit, 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, package, security_advisoryyes/v1/repositories/tensorflow/tensorflow

Index

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

Exploitation

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