CVE-2023-28859
redis-py Race Condition due to incomplete fix
Also known as GHSA-8fww-64cx-x8p5, PYSEC-2023-46
Mitigation
- Upgrade redis to one of 4.5.4, 4.4.4 (or later in the same release line).
Who should check
- Projects that depend on PyPI package redis (>= 4.5.0, < 4.5.4)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- redis >= 4.5.0, < 4.5.4
- Fixed in
- 4.5.4, 4.4.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 1.03% chance of exploitation in 30 days (percentile 63, 2026-11-26)
- CWE
- CWE-459
- Modified
Description
redis-py before 4.4.4 and 4.5.x before 4.5.4 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. (This could, for example, happen for a non-pipeline operation.) NOTE: the solutions for CVE-2023-28859 address data leakage across AsyncIO connections in general.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI redis | >= 4.5.0, < 4.5.4 | 4.5.4, 4.4.4 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-28859. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-28859.md Affected: redis >= 4.5.0, < 4.5.4 Fixed in: 4.5.4, 4.4.4 Steps: 1. Search this machine and project for redis (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/redis/redis-py/pull/2641
- https://github.com/redis/redis-py/issues/2665
- https://github.com/redis/redis-py/pull/2666
- https://github.com/redis/redis-py/pull/1899
- https://github.com/redis/redis-py/pull/2671
- https://github.com/redis/redis-py/commit/66a4d6b2a493dd3a20cc299ab5fef3c14baad965
- https://github.com/redis/redis-py/commit/b3c89acd0ffe8303649ad8207bc911b1d6a033eb
FAQ
Is CVE-2023-28859 being exploited?
There is no confirmed exploitation: CVE-2023-28859 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-28859?
Medium: CVSS 6.5 (v3.1, scored by NVD). Remote, login needed.
Which versions are affected by CVE-2023-28859?
redis >= 4.5.0, < 4.5.4.
Is there a fix for CVE-2023-28859?
Yes. Fixed in 4.5.4, 4.4.4. Upgrade redis to one of 4.5.4, 4.4.4 (or later in the same release line).
How do I check if I'm affected by CVE-2023-28859?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.