CVE-2021-32626
published high CVSS 3.1 · 7.5Lua scripts can overflow the heap-based Lua stack in Redis
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| redis | — | redis>= 6.2.0, < 6.2.6 · >= 6.0.0, < 6.0.16 · >= 2.6.0, < 5.0.14 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2REDIS6-2023-007 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | redis | Advisory build | 5.0.3-5.module_el8.4.0+2583+b9845322 | ALSA-2021:3918 |
| Alpine Linux | edge | redis | Fixed | 6.2.6-r0 | Package fix record |
| Debian | bullseye | redis | Advisory build | 5:6.0.16-1+deb11u1 | DSA-5001-1 |
| Oracle Linux | 8 | redisaarch64 · redis · 5b | Advisory build | 0:5.0.3-5.module+el8.4.0+20382+7694043a | ELSA-2021-3918 |
| Red Hat Enterprise Linux | RHEL-8 | redisaarch64 | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP2 | redisaarch64 | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| Ubuntu | bionic | redis | Advisory build | 5:4.0.9-1ubuntu0.2+esm3 | USN-5221-1 |
| AlmaLinux | 8 | redis | Advisory build | 5.0.3-5.module_el8.5.0+66+fc19ec12 | ALSA-2021:3918 |
| AlmaLinux | 8 | redis | Advisory build | 6.0.9-5.module_el8.4.0+2584+1bb0d2aa | ALSA-2021:3945 |
| AlmaLinux | 8 | redis | Advisory build | 6.0.9-5.module_el8.5.0+67+a3c431d9 | ALSA-2021:3945 |
| Alpine Linux | v3.11 | redis | Fixed | 5.0.14-r0 | Package fix record |
| Alpine Linux | v3.12 | redis | Fixed | 5.0.14-r0 | Package fix record |
| Alpine Linux | v3.13 | redis | Fixed | 6.0.16-r0 | Package fix record |
| Alpine Linux | v3.14 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.15 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.16 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.17 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.18 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.19 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.20 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.21 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.22 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.23 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Alpine Linux | v3.24 | redis | Fixed | 6.2.6-r0 | Package fix record |
| Debian | buster | redis | Advisory build | 5:5.0.14-1+deb10u1 | DSA-5001-1 |
| Debian | stretch | redis | Advisory build | 3:3.2.6-3+deb9u8 | DLA-2810-1 |
| Oracle Linux | 8 | redisaarch64 · redis · 6b | Advisory build | 0:6.0.9-5.module+el8.4.0+20384+68ad316c | ELSA-2021-3945 |
| Oracle Linux | 8 | redisx86_64 · redis · 5b | Advisory build | 0:5.0.3-5.module+el8.4.0+20382+7694043a | ELSA-2021-3918 |
| Oracle Linux | 8 | redisx86_64 · redis · 6b | Advisory build | 0:6.0.9-5.module+el8.4.0+20384+68ad316c | ELSA-2021-3945 |
| Red Hat Enterprise Linux | RHEL-8 | redisaarch64 | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | redisaarch64 | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | redisaarch64 | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| Red Hat Enterprise Linux | RHEL-8 | redisppc64le | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
| Red Hat Enterprise Linux | RHEL-8 | redisppc64le | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | redisppc64le | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | redisppc64le | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| Red Hat Enterprise Linux | RHEL-8 | rediss390x | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
| Red Hat Enterprise Linux | RHEL-8 | rediss390x | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | rediss390x | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | rediss390x | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| Red Hat Enterprise Linux | RHEL-8 | redissrc | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
| Red Hat Enterprise Linux | RHEL-8 | redissrc | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | redissrc | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | redissrc | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| Red Hat Enterprise Linux | RHEL-8 | redisx86_64 | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
| Red Hat Enterprise Linux | RHEL-8 | redisx86_64 | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | redisx86_64 | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | redisx86_64 | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| SUSE / openSUSE | SLE-15-SP2 | redisppc64le | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| SUSE / openSUSE | SLE-15-SP2 | rediss390x | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| SUSE / openSUSE | SLE-15-SP2 | redisx86_64 | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| SUSE / openSUSE | SLE-15-SP3 | redisaarch64 | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| SUSE / openSUSE | SLE-15-SP3 | redisppc64le | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| SUSE / openSUSE | SLE-15-SP3 | rediss390x | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| SUSE / openSUSE | SLE-15-SP3 | redisx86_64 | Advisory build | 6.0.14-6.8.1 | SUSE-SU-2021:3772-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | redisaarch64 | Advisory build | 6.0.14-6.8.1 | OPENSUSE-SU-2021:3772-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | redisppc64le | Advisory build | 6.0.14-6.8.1 | OPENSUSE-SU-2021:3772-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | rediss390x | Advisory build | 6.0.14-6.8.1 | OPENSUSE-SU-2021:3772-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | redisx86_64 | Advisory build | 6.0.14-6.8.1 | OPENSUSE-SU-2021:3772-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | redisaarch64 | Advisory build | 6.2.6-1.1 | OPENSUSE-SU-2024:11563-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | redisppc64le | Advisory build | 6.2.6-1.1 | OPENSUSE-SU-2024:11563-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rediss390x | Advisory build | 6.2.6-1.1 | OPENSUSE-SU-2024:11563-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | redisx86_64 | Advisory build | 6.2.6-1.1 | OPENSUSE-SU-2024:11563-1 |
| Ubuntu | esm | redis | Advisory build | 2:2.8.4-2ubuntu0.2+esm2 | USN-5221-1 |
| Ubuntu | focal | redis | Advisory build | 5:5.0.7-2ubuntu0.1+esm1 | USN-5221-1 |
| Ubuntu | xenial | redis | Advisory build | 2:3.0.6-1ubuntu0.4+esm1 | USN-5221-1 |
| AlmaLinux | 8 | redis-devel | Advisory build | 5.0.3-5.module_el8.4.0+2583+b9845322 | ALSA-2021:3918 |
| AlmaLinux | 8 | redis-devel | Advisory build | 5.0.3-5.module_el8.5.0+66+fc19ec12 | ALSA-2021:3918 |
| AlmaLinux | 8 | redis-devel | Advisory build | 6.0.9-5.module_el8.4.0+2584+1bb0d2aa | ALSA-2021:3945 |
| AlmaLinux | 8 | redis-devel | Advisory build | 6.0.9-5.module_el8.5.0+67+a3c431d9 | ALSA-2021:3945 |
| AlmaLinux | 8 | redis-doc | Advisory build | 5.0.3-5.module_el8.4.0+2583+b9845322 | ALSA-2021:3918 |
| AlmaLinux | 8 | redis-doc | Advisory build | 6.0.9-5.module_el8.4.0+2584+1bb0d2aa | ALSA-2021:3945 |
| Oracle Linux | 8 | redis-develaarch64 · redis · 5b | Advisory build | 0:5.0.3-5.module+el8.4.0+20382+7694043a | ELSA-2021-3918 |
| Oracle Linux | 8 | redis-develaarch64 · redis · 6b | Advisory build | 0:6.0.9-5.module+el8.4.0+20384+68ad316c | ELSA-2021-3945 |
| Oracle Linux | 8 | redis-develx86_64 · redis · 5b | Advisory build | 0:5.0.3-5.module+el8.4.0+20382+7694043a | ELSA-2021-3918 |
| Oracle Linux | 8 | redis-develx86_64 · redis · 6b | Advisory build | 0:6.0.9-5.module+el8.4.0+20384+68ad316c | ELSA-2021-3945 |
| Oracle Linux | 8 | redis-docaarch64 · redis · 5b | Advisory build | 0:5.0.3-5.module+el8.4.0+20382+7694043a | ELSA-2021-3918 |
| Oracle Linux | 8 | redis-docaarch64 · redis · 6b | Advisory build | 0:6.0.9-5.module+el8.4.0+20384+68ad316c | ELSA-2021-3945 |
| Oracle Linux | 8 | redis-docx86_64 · redis · 5b | Advisory build | 0:5.0.3-5.module+el8.4.0+20382+7694043a | ELSA-2021-3918 |
| Oracle Linux | 8 | redis-docx86_64 · redis · 6b | Advisory build | 0:6.0.9-5.module+el8.4.0+20384+68ad316c | ELSA-2021-3945 |
| Red Hat Enterprise Linux | RHEL-7 | rh-redis5-redisppc64le | Advisory build | 5.0.5-3.el7 | RHSA-2021:3947 |
| Red Hat Enterprise Linux | RHEL-7 | rh-redis5-rediss390x | Advisory build | 5.0.5-3.el7 | RHSA-2021:3947 |
| Red Hat Enterprise Linux | RHEL-7 | rh-redis5-redissrc | Advisory build | 5.0.5-3.el7 | RHSA-2021:3947 |
| Red Hat Enterprise Linux | RHEL-7 | rh-redis5-redisx86_64 | Advisory build | 5.0.5-3.el7 | RHSA-2021:3947 |
| Red Hat Enterprise Linux | RHEL-7 | rh-redis5-redis-debuginfoppc64le | Advisory build | 5.0.5-3.el7 | RHSA-2021:3947 |
| Red Hat Enterprise Linux | RHEL-7 | rh-redis5-redis-debuginfos390x | Advisory build | 5.0.5-3.el7 | RHSA-2021:3947 |
| Red Hat Enterprise Linux | RHEL-7 | rh-redis5-redis-debuginfox86_64 | Advisory build | 5.0.5-3.el7 | RHSA-2021:3947 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoaarch64 | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoaarch64 | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoaarch64 | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoaarch64 | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoppc64le | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoppc64le | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoppc64le | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfoppc64le | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfos390x | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfos390x | Advisory build | 5.0.3-5.module+el8.2.0+12926+485b5fc9 | RHSA-2021:3944 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfos390x | Advisory build | 5.0.3-5.module+el8.4.0+12927+b9845322 | RHSA-2021:3918 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfos390x | Advisory build | 6.0.9-5.module+el8.4.0+12929+1bb0d2aa | RHSA-2021:3945 |
| Red Hat Enterprise Linux | RHEL-8 | redis-debuginfox86_64 | Advisory build | 5.0.3-5.module+el8.1.0+12925+6460abef | RHSA-2021:3946 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Redis is an open source, in-memory database that persists on disk. In affected versions specially crafted Lua scripts executing in Redis can cause the heap-based Lua stack to be overflowed, due to incomplete checks for this condition. This can result with heap corruption and potentially remote code execution. This problem exists in all versions of Redis with Lua scripting support, starting from 2.6. The problem is fixed in versions 6.2.6, 6.0.16 and 5.0.14. For users unable to update an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| redis | redis | >= 6.2.0, < 6.2.6 (affected)>= 6.0.0, < 6.0.16 (affected)>= 2.6.0, < 5.0.14 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-122 CWE-122: Heap-based Buffer Overflow
- CWE-787 CWE-787: Out-of-bounds Write
References
10- https://github.com/redis/redis/commit/666ed7facf4524bf6d19b11b20faa2cf93fdf591
- https://github.com/redis/redis/security/advisories/GHSA-p486-xggp-782c
- [druid-commits] 20211025 [GitHub] [druid] jihoonson opened a new pull request #11844: Bump netty4 to 4.1.68; suppress CVE-2021-37136 and CVE-2021-37137 for netty3 https://lists.apache.org/thread.html/r75490c61c2cb7b6ae2c81238fd52ae13636c60435abcd732d41531a0%40%3Ccommits.druid.apache.org%3E
- FEDORA-2021-61c487f241 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HTYQ5ZF37HNGTZWVNJD3VXP7I6MEEF42/
- FEDORA-2021-8913c7900c https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VL5KXFN3ATM7IIM7Q4O4PWTSRGZ5744Z/
- FEDORA-2021-aa94492a09 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WR5WKJWXD4D6S3DJCZ56V74ESLTDQRAB/
- GLSA-202209-17 https://security.gentoo.org/glsa/202209-17
- https://security.netapp.com/advisory/ntap-20211104-0003/
- DSA-5001 https://www.debian.org/security/2021/dsa-5001
- https://www.oracle.com/security-alerts/cpuapr2022.html
Provider assertions
2GitHub_M · cna
Lua scripts can overflow the heap-based Lua stack in Redis
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8822e71dddf4bf63c56b27fef6ca9ed22406002f0f86710611913fae89606257
- Ingested
- 23 Sep 2026, 07:54:29 UTC
- Source record
- Official CVE record