Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. tensorflow
  4. ›
  5. CVE-2022-41902

CVE-2022-41902: Out-of-bounds Write

December 6, 2022 (updated June 27, 2023)

TensorFlow is an open source platform for machine learning. The function MakeGrapplerFunctionItem takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read or a crash is triggered. We have patched the issue in GitHub commit a65411a1d69edfb16b25907ffb8f73556ce36bb7. The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.8.4, 2.9.3, and 2.10.1.

References

  • github.com/advisories/GHSA-cg88-rpvp-cjv5
  • github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/utils/functions.cc
  • github.com/tensorflow/tensorflow/commit/a65411a1d69edfb16b25907ffb8f73556ce36bb7
  • github.com/tensorflow/tensorflow/security/advisories/GHSA-cg88-rpvp-cjv5
  • https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/utils/functions.cc
  • nvd.nist.gov/vuln/detail/CVE-2022-41902

Code Behaviors & Features

Detect and mitigate CVE-2022-41902 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.8.4, all versions starting from 2.9.0 before 2.9.3, version 2.10.0

Fixed versions

  • 2.8.4
  • 2.9.3
  • 2.10.1

Solution

Upgrade to versions 2.8.4, 2.9.3, 2.10.1 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

pypi/tensorflow/CVE-2022-41902.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.