CVE-2021-37641: Heap OOB in `RaggedGather`
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.00931%
CWE
Published
8/25/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:H/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tensorflow | pip | < 2.3.4 | 2.3.4 |
tensorflow | pip | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow | pip | = 2.5.0 | 2.5.1 |
tensorflow-cpu | pip | < 2.3.4 | 2.3.4 |
tensorflow-cpu | pip | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow-cpu | pip | = 2.5.0 | 2.5.1 |
tensorflow-gpu | pip | < 2.3.4 | 2.3.4 |
tensorflow-gpu | pip | >= 2.4.0, < 2.4.3 | 2.4.3 |
tensorflow-gpu | pip | = 2.5.0 | 2.5.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two missing validation checks in the Compute function: 1) No check for empty params_nested_splits list (OP_REQUIRES added in patch), and 2) Premature access of split tensor dimensions before verifying rank >=1 (DCHECK_GT was insufficient as it's debug-only). The function's direct access to dim_size(0) without proper validation of tensor rank and split list contents made it vulnerable to heap OOB reads.