{"id":"CVE-2023-28858","aliases":["CVE-2023-28858","GHSA-24wv-mv5m-xv4h","PYSEC-2023-45"],"related":[],"kind":"vulnerability","state":"published","title":"redis-py Race Condition vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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](https://github.com/redis/redis-py/issues/2665). CVE-2023-28859 has been assigned the issues caused by the incomplete fixes.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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; however, CVE-2023-28859 is a separate vulnerability.","format":"markdown","source":"pysec"}],"published":"2023-03-26T00:00:00.000Z","modified":"2026-06-17T05:48:55.853Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-193"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.4.0","status":"affected","fixed":"4.4.3"}],"ecosystem":"PyPI","package":"redis","purl":"pkg:pypi/redis","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.5.0","status":"affected","fixed":"4.5.3"}],"ecosystem":"PyPI","package":"redis","purl":"pkg:pypi/redis","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.3.6"}],"ecosystem":"PyPI","package":"redis","purl":"pkg:pypi/redis","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2.0","fixed":"4.3.6"},{"status":"affected","introduced":"4.4.0","fixed":"4.4.3"},{"status":"affected","introduced":"4.5.0","fixed":"4.5.3"}],"vendor":"redis","product":"redis-py","cpe":"cpe:2.3:a:redis:redis-py:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.3.6"},{"type":"ecosystem","introduced":"4.4.0","status":"affected","fixed":"4.4.3"},{"type":"ecosystem","introduced":"4.5.0","status":"affected","fixed":"4.5.3"}],"ecosystem":"PyPI","package":"redis","purl":"pkg:pypi/redis","source":"pysec"}],"references":[{"url":"https://github.com/redis/redis-py/pull/2641","tags":["issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/redis/redis-py/issues/2624","tags":["issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/redis/redis-py/compare/v4.5.2...v4.5.3","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/redis/redis-py/compare/v4.4.2...v4.4.3","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/redis/redis-py/compare/v4.3.5...v4.3.6","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://openai.com/blog/march-20-chatgpt-outage","tags":["article","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28858","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/redis/redis-py/commit/d56baeb683fc1935cfa343fa2eeb0fa9bd955283","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/redis/PYSEC-2023-45.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/redis/redis-py","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/redis/redis-py/releases/tag/v4.4.4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/redis/redis-py/releases/tag/v4.5.4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-24wv-mv5m-xv4h","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-02-20T15:35:20.640Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-28858","url":"https://www.cve.org/CVERecord?id=CVE-2023-28858","licence":"CVE Terms of Use","modified":"2025-02-20T15:35:34.833Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-24wv-mv5m-xv4h","url":"https://github.com/advisories/GHSA-24wv-mv5m-xv4h","licence":"CC-BY-4.0","modified":"2024-10-25T21:54:11.332Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-28858","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28858","licence":"Public domain","modified":"2026-06-17T05:48:55.853Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-45","url":"https://osv.dev/vulnerability/PYSEC-2023-45","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:35.114Z"}],"updatedAt":"2026-11-25T22:58:22.687Z","epss":{"score":0.01009,"percentile":0.64061,"date":"2026-12-01T12:00:22.000Z"}}