# CVE-2023-28859: redis-py Race Condition due to incomplete fix

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/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.03%, higher than 64% of CVEs (2026-12-01)
- Published: 2023-03-26T00:00:00.000Z
- Modified: 2026-06-17T05:48:55.987Z
- Also known as: GHSA-8fww-64cx-x8p5, PYSEC-2023-46
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- redis (PyPI): from 4.5.0 before 4.5.4; from 4.2.0 before 4.4.4
- redis redis-py: from 4.2.0 before 4.4.4; from 4.5.0 before 4.5.4

## Every score

- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/redis/redis-py/pull/2641> (issue-tracking, patch, web)
- <https://github.com/redis/redis-py/issues/2665> (issue-tracking, patch, report, vendor-advisory, web)
- <https://github.com/redis/redis-py/releases/tag/v4.4.4> (release-notes, web)
- <https://github.com/redis/redis-py/releases/tag/v4.5.4> (release-notes, web)
- <https://github.com/redis/redis-py/pull/2666> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-28859> (advisory)
- <https://github.com/redis/redis-py/pull/1899> (web)
- <https://github.com/redis/redis-py/pull/2671> (web)
- <https://github.com/redis/redis-py/commit/66a4d6b2a493dd3a20cc299ab5fef3c14baad965> (web)
- <https://github.com/redis/redis-py/commit/b3c89acd0ffe8303649ad8207bc911b1d6a033eb> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/redis/PYSEC-2023-46.yaml> (web)
- <https://github.com/redis/redis-py> (package)
- <https://github.com/advisories/GHSA-8fww-64cx-x8p5> (advisory)

## Sources

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

---

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