SCA: security update for tensorflow, tensorflow-cpu, tensorflow-gpu (GHSA-hr84-fqvp-48mm)

low Tenable Self-Hosted Container Security Plugin ID 415913

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. Specifying a negative dense shape
in `tf.raw_ops.SparseCountSparseOutput` results in a segmentation fault being thrown out from the standard
library as `std::vector` invariants are broken. This is because the implementation(https://github.com/tens
orflow/tensorflow/blob/8f7b60ee8c0206a2c99802e3a4d1bb55d2bc0624/tensorflow/core/kernels/count_ops.cc#L199-
L213) assumes the first element of the dense shape is always positive and uses it to initialize a
`BatchedMap<T>` (i.e., `std::vector<absl::flat_hash_map<int64,T>>`(https://github.com/tensorflow/tensorflo
w/blob/8f7b60ee8c0206a2c99802e3a4d1bb55d2bc0624/tensorflow/core/kernels/count_ops.cc#L27)) data structure.
If the `shape` tensor has more than one element, `num_batches` is the first value in `shape`. Ensuring
that the `dense_shape` argument is a valid tensor shape (that is, all elements are non-negative) solves
this issue. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on
TensorFlow 2.4.2 and TensorFlow 2.3.3. (CVE-2021-29521)

See Also

https://github.com/advisories/GHSA-hr84-fqvp-48mm

Plugin Details

Severity: Low

ID: 415913

Version: Revision 1.6

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: Low

Score: 3

Percentile: 23.18

Vendor

Vendor Severity: Low

CVSS v2

Risk Factor: Low

Base Score: 2.1

Temporal Score: 1.6

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

CVSS Score Source: CVE-2021-29521

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

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

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

CVSS v4

Risk Factor: Low

Base Score: 2.3

Threat Score: 1.3

Threat Vector: CVSS:4.0/E:P

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/21/2021

Vulnerability Publication Date: 5/14/2021

Reference Information

CVE: CVE-2021-29521

cwe: CWE-131