CVE-2021-32625: Redis vulnerability in STRALGO LCS on 32-bit systems

Published Jun 2, 2021
·
Updated

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. 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. The problem is fixed in version 6.2.4 and 6.0.14. 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).

Affected Software

16 affected componentsFixes available
Redislabs Redis>=6.0.0<6.0.14
Redislabs Redis>=6.2.0<6.2.4
Fedoraproject Fedora=33
Fedoraproject Fedora=34
alpine/redis>=6.0.0<6.0.14-r0
6.0.14-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0
alpine/redis>=6.0.0<6.2.4-r0
6.2.4-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 6.0.14-r0
  2. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 6.2.4-r0
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.2.4
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.0.14
  5. Configuration

    Use ACL configuration to prevent clients from using the STRALGO LCS command.

    Redis ACL STRALGO LCS command access = disabled
  6. Configuration

    On 64-bit systems with the CVE-2021-29477 fixes, set proto-max-bulk-len to a value smaller than 2GB; the default is 512MB.

    Redis proto-max-bulk-len = less than 2GB

Event History

Jun 2, 2021
CVE Published
via MITRE·07:35 PM
Data Sourced
via MITRE·07:35 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2021-32625?

CVE-2021-32625 is an integer overflow vulnerability in Redis version 6.0 or newer, which could lead to remote code execution.

2

What is the severity of CVE-2021-32625?

CVE-2021-32625 has a severity rating of 8.8 (high).

3

How can CVE-2021-32625 be exploited?

CVE-2021-32625 can be exploited using the STRALGO LCS command to corrupt the heap and potentially result in remote code execution.

4

Which software versions are affected by CVE-2021-32625?

Redis versions 6.0 to 6.0.14 and 6.2.0 to 6.2.4 are affected by CVE-2021-32625.

5

How can I fix CVE-2021-32625?

To fix CVE-2021-32625, update to Redis version 6.0.15 or 6.2.5 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203