# CVE-2023-28858: redis-py Race Condition vulnerability

- Severity: Low 3.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-01)
- Published: 2023-03-26T00:00:00.000Z
- Modified: 2026-06-17T05:48:55.853Z
- Also known as: GHSA-24wv-mv5m-xv4h, PYSEC-2023-45
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- redis (PyPI): from 4.4.0 before 4.4.3; from 4.5.0 before 4.5.3; from 4.2.0 before 4.3.6
- redis redis-py: from 4.2.0 before 4.3.6; from 4.4.0 before 4.4.3; from 4.5.0 before 4.5.3

## Every score

- GitHub: CVSS:3.1 3.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/redis/redis-py/pull/2641> (issue-tracking, patch, web)
- <https://github.com/redis/redis-py/issues/2624> (issue-tracking, report, web)
- <https://github.com/redis/redis-py/compare/v4.5.2...v4.5.3> (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.3.5...v4.3.6> (patch, web)
- <https://openai.com/blog/march-20-chatgpt-outage> (article, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2023-28858](https://www.cve.org/CVERecord?id=CVE-2023-28858), CVE Terms of Use, modified 2025-02-20
- GitHub Advisory Database: [GHSA-24wv-mv5m-xv4h](https://github.com/advisories/GHSA-24wv-mv5m-xv4h), CC-BY-4.0, modified 2024-10-25
- NVD: [CVE-2023-28858](https://nvd.nist.gov/vuln/detail/CVE-2023-28858), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-45](https://osv.dev/vulnerability/PYSEC-2023-45), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2023-28858 · Whole record: https://cve.day/CVE-2023-28858.json · Rebuilt by cve.day 2026-11-25T22:58:22.687Z
