CVE-2023-28858
LOW 3.7CVSS 3.1redis-py Race Condition vulnerability
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.
- Published
- 26 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-193
- Also known as
- GHSA-24wv-mv5m-xv4hPYSEC-2023-45
- Sources
- NVDJSONOSV GHSA-24wv-mv5m-xv4hJSONOSV PYSEC-2023-45JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redis | redis-pycpe:2.3:a:redis:redis-py:*:*:*:*:*:*:*:* |
>= 4.2.0, < 4.3.6 | 4.3.6 |
| NVD | redis | redis-pycpe:2.3:a:redis:redis-py:*:*:*:*:*:*:*:* |
>= 4.4.0, < 4.4.3 | 4.4.3 |
| NVD | redis | redis-pycpe:2.3:a:redis:redis-py:*:*:*:*:*:*:*:* |
>= 4.5.0, < 4.5.3 | 4.5.3 |
| OSV | PyPI | redis | >= 4.4.0, < 4.4.3 | 4.4.3 |
| OSV | PyPI | redis | >= 4.5.0, < 4.5.3 | 4.5.3 |
| OSV | PyPI | redis | >= 4.2.0, < 4.3.6 | 4.3.6 |
| OSV | PyPI | redis | >= 4.2.0, < 4.3.6; >= 4.4.0, < 4.4.3; >= 4.5.0, < 4.5.3 | 4.3.6, 4.4.3, 4.5.3 |
References
- https://github.com/redis/redis-py/compare/v4.3.5...v4.3.6 · Patch, WEB
- https://github.com/redis/redis-py/compare/v4.4.2...v4.4.3 · Patch, WEB
- https://github.com/redis/redis-py/compare/v4.5.2...v4.5.3 · Patch, WEB
- https://github.com/redis/redis-py/issues/2624 · Issue Tracking, WEB, REPORT
- https://github.com/redis/redis-py/pull/2641 · Issue Tracking, Patch, WEB
- https://openai.com/blog/march-20-chatgpt-outage · Third Party Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2023-28858 · ADVISORY
- https://github.com/redis/redis-py/commit/d56baeb683fc1935cfa343fa2eeb0fa9bd955283 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/redis/PYSEC-2023-45.yaml · WEB
- https://github.com/redis/redis-py · PACKAGE
- https://github.com/redis/redis-py/releases/tag/v4.4.4 · WEB
- https://github.com/redis/redis-py/releases/tag/v4.5.4 · WEB
- https://github.com/advisories/GHSA-24wv-mv5m-xv4h · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 26 Mar 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Mar 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Mar 2023)