Live threats

All CVEs / Redis

CVE-2023-28858Redis-py

Low 3.7 No auth needed

Priority
37
CVSS 3.1
3.7
EPSS
0.9%
probability of exploitation in 30 days · percentile 58
Auth required
No
Published
Mar 26, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-193
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Redis-py.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI redis ≥ 4.4.0 < 4.4.3 4.4.3 pip install "redis>=4.4.3"
PyPI redis ≥ 4.5.0 < 4.5.3 4.5.3 pip install "redis>=4.5.3"
PyPI redis ≥ 4.2.0 < 4.3.6 4.3.6 pip install "redis>=4.3.6"
PyPI redis ≥ 4.2.0 < 4.3.6 4.3.6 pip install "redis>=4.3.6"
PyPI redis ≥ 4.4.0 < 4.4.3 4.4.3 pip install "redis>=4.4.3"
PyPI redis ≥ 4.5.0 < 4.5.3 4.5.3 pip install "redis>=4.5.3"

Per OSV / GitHub Advisories (GHSA-24wv-mv5m-xv4h, PYSEC-2023-45). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redisredis-py≥ 4.2.0 < 4.3.6
redisredis-py≥ 4.4.0 < 4.4.3
redisredis-py≥ 4.5.0 < 4.5.3

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.