Skip to content
OpenAdvisories
High · 7.5 CVE-2021-32761 EUVD-2021-19529

Integer overflow issues with *BIT commands on 32-bit systems

Published Jul 21, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

Redis is an in-memory database that persists on disk. A vulnerability involving out-of-bounds read and integer overflow to buffer overflow exists starting with version 2.2 and prior to versions 5.0.13, 6.0.15, and 6.2.5. On 32-bit systems, Redis `*BIT*` command are vulnerable to integer overflow that can potentially be exploited to corrupt the heap, leak arbitrary heap contents or trigger remote code execution. The vulnerability involves changing the default `proto-max-bulk-len` configuration parameter to a very large value and constructing specially crafted commands bit commands. This problem only affects Redis on 32-bit platforms, or compiled as a 32-bit binary. Redis versions 5.0.`3m 6.0.15, and 6.2.5 contain patches for this issue. An additional workaround to mitigate the problem without patching the `redis-server` executable is to prevent users from modifying the `proto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.

Affected products

VendorProductAffectedFixed
redis redis >= 2.2, < 5.0.13, >= 6.0.0, < 6.0.15, >= 6.2.0, < 6.2.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 redis 5:6.0.15-1 —
Debian 13 redis 5:6.0.15-1 —
Debian 12 redis 5:6.0.15-1 —
Debian 9 redis 3:3.2.6-3+deb9u5 DLA-2717-2, DLA-2717-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS redis 5:5.0.7-2ubuntu0.1+esm1 USN-5221-1
Ubuntu Pro 18.04 LTS redis 5:4.0.9-1ubuntu0.2+esm3 USN-5221-1
Ubuntu Pro 16.04 LTS redis 2:3.0.6-1ubuntu0.4+esm1 USN-5221-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS redis 2:2.8.4-2ubuntu0.2+esm2 USN-5221-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis 6.2.5-1.2 openSUSE-SU-2024:11299-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redis 6.2.5-r0 —
Alpine v3.23 redis 6.2.5-r0 —
Alpine v3.22 redis 6.2.5-r0 —
Alpine v3.21 redis 6.2.5-r0 —
Alpine v3.20 redis 6.2.5-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 6.2.5-r0 —
Alpine v3.18 redis 6.2.5-r0 —
Alpine v3.17 redis 6.2.5-r0 —
Alpine v3.16 redis 6.2.5-r0 —
Alpine v3.15 redis 6.2.5-r0 —
Alpine v3.14 redis 6.2.5-r0 —
Alpine v3.13 redis 6.0.13-r0 —
Alpine v3.12 redis 5.0.13-r0 —
Alpine v3.11 redis 5.0.13-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) redis 6.2.5-1 —

Advisories 5

References