CVE-2023-25674: TensorFlow has Null Pointer Error in RandomShuffle with XLA enable
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.49333%
CWE
Published
3/24/2023
Updated
3/30/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| tensorflow | pip | < 2.11.1 | 2.11.1 |
| tensorflow-cpu | pip | < 2.11.1 | 2.11.1 |
| tensorflow-gpu | pip | < 2.11.1 | 2.11.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability was fixed by adding validation for positive lengths in TensorListSplitOp. Though the user-facing API was RandomShuffle, the underlying XLA implementation path for tensor list handling (specifically TensorListSplitOp) was the root cause. The test case demonstrates how invalid parameters could trigger this code path, and the patch adds explicit checks to prevent zero/negative lengths.