Skip to content

Vulnerability in STRALGO LCS

High
yossigo published GHSA-46cp-x4x9-6pfq Jun 1, 2021

Package

No package listed

Affected versions

<6.2.4, <6.0.14

Patched versions

6.2.4, 6.0.14

Description

Impact

An integer overflow bug in Redis version 6.0 or newer, could be exploited using the STRALGO LCS command to corrupt the heap and potentially result with remote code execution.

This is a result of an incomplete fix by CVE-2021-29477.

Patches

The problem is fixed in version 6.2.4 and 6.0.14.

Workarounds

An additional workaround to mitigate the problem without patching the redis-server executable is to use ACL configuration to prevent clients from using the STRALGO LCS command.

On 64 bit systems which have the fixes of CVE-2021-29477 (6.2.3 or 6.0.13), it is sufficient to make sure that the proto-max-bulk-len config parameter is smaller than 2GB (default is 512MB).

Credit

This problem has been identified and reported by Nipun Gupta.

For more information

If you have any questions or comments about this advisory:

Severity

High
7.5
/ 10

CVSS base metrics

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

CVE ID

CVE-2021-32625

Weaknesses