SCA: security update for tensorflow, tensorflow-cpu, tensorflow-gpu (GHSA-2gfx-95x2-5v3x)

high Tenable Cloud Security Plugin ID 408908

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. An attacker can cause a heap buffer
overflow in `QuantizedReshape` by passing in invalid thresholds for the quantization. This is because the
implementation(https://github.com/tensorflow/tensorflow/blob/a324ac84e573fba362a5e53d4e74d5de6729933e/tens
orflow/core/kernels/quantized_reshape_op.cc#L38-L55) assumes that the 2 arguments are always valid scalars
and tries to access the numeric value directly. However, if any of these tensors is empty, then
`.flat<T>()` is an empty buffer and accessing the element at position 0 results in overflow. The fix will
be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow
2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
(CVE-2021-29536)

See Also

https://github.com/advisories/GHSA-2gfx-95x2-5v3x

Plugin Details

Severity: High

ID: 408908

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.15

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.6

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

CVSS Score Source: CVE-2021-29536

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

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:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/13/2021

Vulnerability Publication Date: 5/13/2021

Reference Information

CVE: CVE-2021-29536

cwe: CWE-787