CVE-2023-28858Redis-py
Low 3.7 No auth needed
Follow: this CVE · Redis · Redis-py We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.1
- 3.7
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- Mar 26, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-193
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
redis-py before 4.5.3 leaves a connection open after canceling an async Redis command at an inopportune time, and can send response data to the client of an unrelated request in an off-by-one manner. NOTE: this CVE Record was initially created in response to reports about ChatGPT, and 4.3.6, 4.4.3, and 4.5.3 were released (changing the behavior for pipeline operations); however, please see CVE-2023-28859 about addressing data leakage across AsyncIO connections in general.
What to do
- Apply the vendor's security update for Redis-py.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | redis |
≥ 4.4.0 < 4.4.3 |
4.4.3 |
pip install "redis>=4.4.3" |
| PyPI | redis |
≥ 4.5.0 < 4.5.3 |
4.5.3 |
pip install "redis>=4.5.3" |
| PyPI | redis |
≥ 4.2.0 < 4.3.6 |
4.3.6 |
pip install "redis>=4.3.6" |
| PyPI | redis |
≥ 4.2.0 < 4.3.6 |
4.3.6 |
pip install "redis>=4.3.6" |
| PyPI | redis |
≥ 4.4.0 < 4.4.3 |
4.4.3 |
pip install "redis>=4.4.3" |
| PyPI | redis |
≥ 4.5.0 < 4.5.3 |
4.5.3 |
pip install "redis>=4.5.3" |
Per OSV / GitHub Advisories (GHSA-24wv-mv5m-xv4h, PYSEC-2023-45). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redis | redis-py | ≥ 4.2.0 < 4.3.6 |
| redis | redis-py | ≥ 4.4.0 < 4.4.3 |
| redis | redis-py | ≥ 4.5.0 < 4.5.3 |
Official advisories
- python313-redis-7.0.1-2.5 on GA media · SUSE · openSUSE-SU-2026:12036-1 · Oct 4, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Issue Tracking
- github.com Issue Tracking Patch
- openai.com Third Party Advisory