CVE-2021-32625Redis vulnerability in STRALGO LCS on 32-bit systems
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).
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | redis | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | redis | Fix pending | UBUNTU-CVE-2021-32625 | |
| Ubuntu 14.04 | redis | Fix pending | UBUNTU-CVE-2021-32625 | |
| Debian 14 | redis | Fixed | 5:6.0.14-1 | DEBIAN-CVE-2021-32625 |
| Debian 13 | redis | Fixed | 5:6.0.14-1 | DEBIAN-CVE-2021-32625 |
| Debian 12 | redis | Fixed | 5:6.0.14-1 | DEBIAN-CVE-2021-32625 |
| Red Hat Enterprise Linux 9 | redis | Not affected | ||
| Red Hat Enterprise Linux 9 | redis-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | redis-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | redis | Not affected | ||
| Red Hat Enterprise Linux 8 | redis-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | redis-doc | Not affected | ||
| Alpine Linux 3.24 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.23 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.22 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.21 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.20 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.19 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.18 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.17 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.16 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.15 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.14 | redis | Fixed | 6.2.4-r0 | ALPINE-CVE-2021-32625 |
| Alpine Linux 3.13 | redis | Fixed | 6.0.14-r0 | ALPINE-CVE-2021-32625 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- redis: affected: < 6.0.14, >= 6.2.0, < 6.2.4
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/redis/redis/security/advisories/GHSA-46cp-x4x9-6pfq
- https://github.com/redis/redis/releases/tag/6.0.14
- https://github.com/redis/redis/releases/tag/6.2.4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BHWOF7CBVUGDK3AN6H3BN3VNTH2TDUZZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SN7INTZFE34MIQJO7WDDTIY5LIBGN6GI/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.