redis-py Race Condition vulnerability
Published 26 Mar 2023 · Updated 25 Oct 2024
Is your project on an affected redis?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=4.4.0 <4.4.3
- Fixed in
- 4.4.3
pip install 'redis>=4.4.3'- Affected
- >=4.5.0 <4.5.3
- Fixed in
- 4.5.3
pip install 'redis>=4.5.3'- Affected
- >=4.2.0 <4.3.6
- Fixed in
- 4.3.6
pip install 'redis>=4.3.6'Details
redis-py before 4.5.3, as used in ChatGPT and other products, leaves a connection open after canceling an async Redis command at an inopportune time (in the case of a pipeline operation), and can send response data to the client of an unrelated request in an off-by-one manner. The fixed versions for this CVE Record are 4.3.6, 4.4.3, and 4.5.3, but are believed to be incomplete. CVE-2023-28859 has been assigned the issues caused by the incomplete fixes.
Is GHSA-24wv-mv5m-xv4h in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected redis, and gives you the command that fixes it.
More advisories for redis
- HighCVE-2023-28859redis-py Race Condition due to incomplete fix · 26 Mar 2023
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-28858
- Linkgithub.com/redis/redis-py/issues/2624
- Linkgithub.com/redis/redis-py/pull/2641
- Linkgithub.com/redis/redis-py/commit/d56baeb683fc1935cfa343fa2eeb0fa9bd955283
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/redis/PYSEC-2023-45.yaml
- Packagegithub.com/redis/redis-py
- Linkgithub.com/redis/redis-py/compare/v4.3.5...v4.3.6
- Linkgithub.com/redis/redis-py/compare/v4.4.2...v4.4.3
- Linkgithub.com/redis/redis-py/compare/v4.5.2...v4.5.3
- Linkgithub.com/redis/redis-py/releases/tag/v4.4.4
- Linkgithub.com/redis/redis-py/releases/tag/v4.5.4
- Linkopenai.com/blog/march-20-chatgpt-outage
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.