CVE-2021-32626 Lua scripts can overflow the heap-based Lua stack in Redis
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
27 packages: 22 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp management services for element software | All versions | No fix listed | No fix yet |
| netapp management services for netapp hci | All versions | No fix listed | No fix yet |
| alpine/redis(Alpine v3.11) | >= 2.6, < 5.0.14-r0 | 5.0.14-r0 | Fixed |
| alpine/redis(Alpine v3.12) | >= 2.6, < 5.0.14-r0 | 5.0.14-r0 | Fixed |
| alpine/redis(Alpine v3.13) | >= 6.0.0, < 6.0.16-r0 | 6.0.16-r0 | Fixed |
| alpine/redis(Alpine v3.14) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.15) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.16) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.17) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.18) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.19) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.20) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.21) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.22) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.23) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.24) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| debian/redis(Debian 12) | < 5:6.0.16-1 | 5:6.0.16-1 | Fixed |
| debian/redis(Debian 13) | < 5:6.0.16-1 | 5:6.0.16-1 | Fixed |
| debian/redis(Debian 14) | < 5:6.0.16-1 | 5:6.0.16-1 | Fixed |
| Redis | = >= 2.6.0, < 5.0.14; = >= 6.0.0, < 6.0.16; = >= 6.2.0, < 6.2.6; >= 2.6, < 5.0.14 +2 more | 5.0.14, 6.0.16, 6.2.6 | Fixed |
| ubuntu/redis(Ubuntu Pro 14.04) | < 2:2.8.4-2ubuntu0.2+esm2; = 2:2.6.13-1; = 2:2.6.16-3; = 2:2.8.0-1 +4 more | 2:2.8.4-2ubuntu0.2+esm2 | Fixed |
| ubuntu/redis(Ubuntu Pro 16.04) | < 2:3.0.6-1ubuntu0.4+esm1; = 2:3.0.3-3; = 2:3.0.5-1; = 2:3.0.5-2 +6 more | 2:3.0.6-1ubuntu0.4+esm1 | Fixed |
| ubuntu/redis(Ubuntu Pro 18.04) | < 5:4.0.9-1ubuntu0.2+esm3; = 4:4.0.1-7; = 4:4.0.2-6; = 4:4.0.2-9 +10 more | 5:4.0.9-1ubuntu0.2+esm3 | Fixed |
| ubuntu/redis(Ubuntu Pro 20.04) | < 5:5.0.7-2ubuntu0.1+esm1; = 5:5.0.5-2build1; = 5:5.0.6-1; = 5:5.0.7-1 +3 more | 5:5.0.7-2ubuntu0.1+esm1 | Fixed |
| debian linux | = 10.0; = 11.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 33; = 34; = 35 | No fix listed | Versions listed |
| oracle communications operations monitor | = 4.3; = 4.4; = 5.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/redis(Debian:12) | < 5:6.0.16-1 | 5:6.0.16-1 |
| debian/redis(Debian:13) | < 5:6.0.16-1 | 5:6.0.16-1 |
| debian/redis(Debian:14) | < 5:6.0.16-1 | 5:6.0.16-1 |
| Redis | >= 2.6, < 5.0.14 | 5.0.14 |
| Redis | >= 6.0.0, < 6.0.16 | 6.0.16 |
| Redis | >= 6.2.0, < 6.2.6 | 6.2.6 |
| fedoraproject fedora | = 33 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| netapp management services for element software | All versions | No fix listed |
| netapp management services for netapp hci | All versions | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| oracle communications operations monitor | = 4.3 | No fix listed |
| oracle communications operations monitor | = 4.4 | No fix listed |
| oracle communications operations monitor | = 5.0 | No fix listed |
| Redis | = >= 6.2.0, < 6.2.6 | No fix listed |
| Redis | = >= 6.0.0, < 6.0.16 | No fix listed |
| Redis | = >= 2.6.0, < 5.0.14 | No fix listed |
| alpine/redis(Alpine:v3.11) | >= 2.6, < 5.0.14-r0 | 5.0.14-r0 |
| alpine/redis(Alpine:v3.12) | >= 2.6, < 5.0.14-r0 | 5.0.14-r0 |
| alpine/redis(Alpine:v3.13) | >= 6.0.0, < 6.0.16-r0 | 6.0.16-r0 |
| alpine/redis(Alpine:v3.14) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.15) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.16) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
Show 47 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/redis(Alpine:v3.17) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.18) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.19) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.20) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.21) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.22) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.23) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.24) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| ubuntu/redis(Ubuntu:Pro:14.04) | < 2:2.8.4-2ubuntu0.2+esm2 | 2:2.8.4-2ubuntu0.2+esm2 |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.6.13-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.6.16-3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.0-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.2-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.4-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.4-2ubuntu0.2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:14.04) | = 2:2.8.4-2ubuntu0.2+esm1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | < 2:3.0.6-1ubuntu0.4+esm1 | 2:3.0.6-1ubuntu0.4+esm1 |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.3-3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.5-4 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1ubuntu0.2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1ubuntu0.3 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:16.04) | = 2:3.0.6-1ubuntu0.4 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | < 5:4.0.9-1ubuntu0.2+esm3 | 5:4.0.9-1ubuntu0.2+esm3 |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 4:4.0.1-7 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 4:4.0.2-6 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 4:4.0.2-9 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.5-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.6-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.6-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.7-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.8-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.8-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1ubuntu0.1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1ubuntu0.2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:18.04) | = 5:4.0.9-1ubuntu0.2+esm2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | < 5:5.0.7-2ubuntu0.1+esm1 | 5:5.0.7-2ubuntu0.1+esm1 |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.5-2build1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.6-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-2 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-2ubuntu0.1~esm1 | No fix listed |
| ubuntu/redis(Ubuntu:Pro:20.04) | = 5:5.0.7-2ubuntu0.1 | No fix listed |
References
- Debian Security Tracker CVE-2021-32626 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking third-party-advisory
- [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 mailing-list
- FEDORA-2021-61c487f241 vendor-advisory
- FEDORA-2021-8913c7900c vendor-advisory
- FEDORA-2021-aa94492a09 vendor-advisory
- GLSA-202209-17 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- DSA-5001 third-party-advisory vendor-advisory
- www.oracle.com patch third-party-advisory
- security.alpinelinux.org vendor-advisory
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking