CVE-2023-28859 redis-py Race Condition due to incomplete fix

Medium 6.5 Published Updated

An attacker can read response data from unrelated requests due to connection leakage in the async Redis client.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-28859?

CVE-2023-28859 is a medium-severity vulnerability in n/a, published on 26 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-459

Which versions are affected by CVE-2023-28859?

5 open source packages ship an affected version, including redis. It affects 1 product.

PackageAffectedFixed in
redis PyPIFrom 4.2.04.4.4, 4.5.4
redis PyPIFrom 4.2.04.4.4
redis PyPIFrom 4.2.04.4.4
redis PyPIFrom 4.5.04.5.4
redis PyPIFrom 4.5.04.5.4

Products include Redis Redis-Py.

How do I fix CVE-2023-28859?

Upgrade redis to a fixed version for your release line: 4.4.4 or 4.5.4.

Is CVE-2023-28859 being exploited?

There is no known exploitation of CVE-2023-28859 in the wild and no public exploit code.

Sources

Also known as GHSA-8fww-64cx-x8p5, PYSEC-2023-46, UBUNTU-CVE-2023-28859.

Is CVE-2023-28859 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free