redis/redis-py · Security
redis-py Race Condition due to incomplete fix
- GHSA ID
- GHSA-8fww-64cx-x8p5
- CVE ID
- CVE-2023-28859
- Severity
- high
- Published
- Updated
- CVSS
- 6.5 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 6.5 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CVSS v4
- 7.1 · CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Description
redis-py through 4.5.3 and 4.4.3 leaves a connection open after canceling an async Redis command at an inopportune time (in the case of a non-pipeline operation), and can send response data to the client of an unrelated request. NOTE: this issue exists because of an incomplete fix for CVE-2023-28858.
CWEs
- CWE-459 · Incomplete Cleanup
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-28859 ↗
- https://github.com/redis/redis-py/issues/2665 ↗
- https://github.com/redis/redis-py/pull/2641 ↗
- https://github.com/redis/redis-py/pull/2666 ↗
- https://github.com/redis/redis-py/pull/2671 ↗
- 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/pypa/advisory-database/tree/main/vulns/redis/PYSEC-2023-46.yaml ↗
- https://github.com/redis/redis-py/pull/1899 ↗
- https://github.com/redis/redis-py/commit/66a4d6b2a493dd3a20cc299ab5fef3c14baad965 ↗
- https://github.com/redis/redis-py/commit/b3c89acd0ffe8303649ad8207bc911b1d6a033eb ↗
- https://github.com/advisories/GHSA-8fww-64cx-x8p5 ↗