CVE-2021-41207: FPE in `ParallelConcat`
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.02677%
CWE
Published
11/10/2021
Updated
11/13/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tensorflow | pip | >= 2.6.0, < 2.6.1 | 2.6.1 |
tensorflow | pip | >= 2.5.0, < 2.5.2 | 2.5.2 |
tensorflow | pip | < 2.4.4 | 2.4.4 |
tensorflow-cpu | pip | >= 0, < 2.4.4 | 2.4.4 |
tensorflow-cpu | pip | >= 2.5.0, < 2.5.2 | 2.5.2 |
tensorflow-cpu | pip | >= 2.6.0, < 2.6.1 | 2.6.1 |
tensorflow-gpu | pip | >= 0, < 2.4.4 | 2.4.4 |
tensorflow-gpu | pip | >= 2.5.0, < 2.5.2 | 2.5.2 |
tensorflow-gpu | pip | >= 2.6.0, < 2.6.1 | 2.6.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing input validation in ParallelConcat's implementation. The commit f2c3931 added validation checks for tensor rank and 0th dimension size in ParallelConcatUpdate::Compute. The original vulnerable code (before patch) in inplace_ops.cc lines 72-97 did not validate that value.dim_size(0) > loc_, which could result in division by zero when calculating output dimensions. The test case demonstrates triggering this with shape=0, which would fail the added validation checks. The function is directly responsible for handling ParallelConcat operations and contained the unvalidated division operation.