CVE-2023-28858
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
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python-redis | Fix pending | UBUNTU-CVE-2023-28858 | |
| Ubuntu 26.04 | python-redis | Fix pending | UBUNTU-CVE-2023-28858 | |
| Ubuntu 25.10 | python-redis | Will not fix async support added in 4.2.0 | UBUNTU-CVE-2023-28858 | |
| Ubuntu 24.04 | python-redis | Fix pending | UBUNTU-CVE-2023-28858 | |
| Ubuntu 22.04 | python-redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | python-redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | python-redis | Will not fix async support added in 4.2.0 | ||
| Ubuntu 16.04 | python-redis | Will not fix async support added in 4.2.0 | ||
| Ubuntu 14.04 | python-redis | Will not fix async support added in 4.2.0 | ||
| Debian 14 | python-redis | Fixed | 5.2.1-1 | DEBIAN-CVE-2023-28858 |
| Debian 13 | python-redis | Fixed | 5.2.1-1 | DEBIAN-CVE-2023-28858 |
| Debian 12 | python-redis | Fix pending | DEBIAN-CVE-2023-28858 | |
| Alpine Linux 3.24 | py3-redis | Fixed | 4.5.4-r0 | ALPINE-CVE-2023-28858 |
| Alpine Linux 3.23 | py3-redis | Fixed | 4.5.4-r0 | ALPINE-CVE-2023-28858 |
| Alpine Linux 3.22 | py3-redis | Fixed | 4.5.4-r0 | ALPINE-CVE-2023-28858 |
| Alpine Linux 3.21 | py3-redis | Fixed | 4.5.4-r0 | ALPINE-CVE-2023-28858 |
| Alpine Linux 3.20 | py3-redis | Fixed | 4.5.4-r0 | ALPINE-CVE-2023-28858 |
| Alpine Linux 3.19 | py3-redis | Fixed | 4.5.4-r0 | ALPINE-CVE-2023-28858 |
| Alpine Linux 3.18 | py3-redis | Fixed | 4.5.4-r0 | ALPINE-CVE-2023-28858 |
| PyPI library | redis | Fixed | 4.4.3 | PYSEC-2023-45 |
References
- https://github.com/redis/redis-py/pull/2641
- https://github.com/redis/redis-py/issues/2624
- https://github.com/redis/redis-py/compare/v4.5.2...v4.5.3
- https://github.com/redis/redis-py/compare/v4.4.2...v4.4.3
- https://github.com/redis/redis-py/compare/v4.3.5...v4.3.6
- https://openai.com/blog/march-20-chatgpt-outage
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.