CVE-2023-28859: redis-py Race Condition due to incomplete fix
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.71029%
CWE
Published
3/26/2023
Updated
10/25/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
redis | pip | >= 4.5.0, < 4.5.4 | 4.5.4 |
redis | pip | >= 4.2.0, < 4.4.4 | 4.4.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incomplete cleanup during async command cancellation. The commit diff shows critical changes in client.py
and cluster.py
where asyncio.shield
was added to protect against premature cancellation, and explicit CancelledError
handling was implemented to disconnect lingering connections. These functions
directly manage command execution lifecycle and were the focus of the patch, making them the clear vulnerable points.