Advisory

GHSA-24wv-mv5m-xv4h

Also known as: CVE-2023-28858, PYSEC-2023-45

Summary

redis-py Race Condition vulnerability

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-03-26 21:30 UTC
Modified
2024-10-25 21:54 UTC

Affected packages and fixes

redis

PyPI · All systems

Affected

  • introduced 4.4.0, fixed 4.4.3 (ecosystem)

Fixed versions

4.4.3

Fix

  • Fixed version 4.4.3
    pip install --upgrade redis==4.4.3

redis

PyPI · All systems

Affected

  • introduced 4.5.0, fixed 4.5.3 (ecosystem)

Fixed versions

4.5.3

Fix

  • Fixed version 4.5.3
    pip install --upgrade redis==4.5.3

redis

PyPI · All systems

Affected

  • introduced 4.2.0, fixed 4.3.6 (ecosystem)

Fixed versions

4.3.6

Fix

  • Fixed version 4.3.6
    pip install --upgrade redis==4.3.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences