Skip to content

Integer overflow in the Redis SETRANGE and SORT/SORT_RO commands may result with false OOM panic

Moderate
yossigo published GHSA-mrcw-fhw9-fj8j Jan 20, 2023

Package

Redis (N/A)

Affected versions

All versions

Patched versions

7.0.8, 6.2.9, 6.0.17

Description

Impact

Authenticated users issuing specially crafted SETRANGE and SORT(_RO) commands can trigger an integer overflow, resulting with Redis attempting to allocate impossible amounts of memory and abort with an OOM panic.

Patches

The problem is fixed in Redis versions 7.0.8, 6.2.9 and 6.0.17.

Credit

The issue has been identified by Xion (SeungHyun Lee) of KAIST GoN

For more information

If you have any questions or comments about this advisory:

Severity

Moderate
5.5
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2022-35977

Weaknesses