SCA: security update for tensorflow, tensorflow-cpu, tensorflow-gpu (GHSA-gh6x-4whr-2qv4)

high Tenable Cloud Security Plugin ID 415136

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- TensorFlow is an end-to-end open source platform for machine learning. When restoring tensors via raw
APIs, if the tensor name is not provided, TensorFlow can be tricked into dereferencing a null pointer.
Alternatively, attackers can read memory outside the bounds of heap allocated data by providing some
tensor names but not enough for a successful restoration. The [implementation](https://github.com/tensorfl
ow/tensorflow/blob/47a06f40411a69c99f381495f490536972152ac0/tensorflow/core/kernels/save_restore_tensor.cc
#L158-L159) retrieves the tensor list corresponding to the `tensor_name` user controlled input and
immediately retrieves the tensor at the restoration index (controlled via `preferred_shard` argument).
This occurs without validating that the provided list has enough values. If the list is empty this results
in dereferencing a null pointer (undefined behavior). If, however, the list has some elements, if the
restoration index is outside the bounds this results in heap OOB read. We have patched the issue in GitHub
commit 9e82dce6e6bd1f36a57e08fa85af213e2b2f2622. The fix will be included in TensorFlow 2.6.0. We will
also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also
affected and still in supported range. (CVE-2021-37639)

See Also

https://github.com/advisories/GHSA-gh6x-4whr-2qv4

Plugin Details

Severity: High

ID: 415136

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.12

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.4

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-37639

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.6

Threat Score: 6.1

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 8/25/2021

Vulnerability Publication Date: 8/12/2021

Reference Information

CVE: CVE-2021-37639