Skip to content
OpenAdvisories
High · 7.5 CVE-2021-32627 EUVD-2021-19458

Integer overflow issue with Streams in Redis

Published Oct 4, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

Redis is an open source, in-memory database that persists on disk. In affected versions an integer overflow bug in Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and constructing specially crafted very large stream elements. The problem is fixed in Redis 6.2.6, 6.0.16 and 5.0.14. For users unable to upgrade 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 >= 5.0.0, < 5.0.14, >= 6.0.0, < 6.0.16, >= 6.2.0, < 6.2.6 —

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.16-1 —
Debian 13 redis 5:6.0.16-1 —
Debian 12 redis 5:6.0.16-1 —
Debian 11 redis 5:6.0.16-1+deb11u1 DSA-5001-1
Debian 10 redis 5:5.0.14-1+deb10u1 DSA-5001-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
RHEL 8 redis +2 5.0.3-5.module+el8.4.0+12927+b9845322 RHSA-2021:3945, RHSA-2021:3918
RHEL 3 rh-redis5-redis 5.0.5-3.el7 RHSA-2021:3947
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS redis +2 5.0.3-5.module+el8.2.0+12926+485b5fc9 RHSA-2021:3944
RHEL 8.1 EUS redis +2 5.0.3-5.module+el8.1.0+12925+6460abef RHSA-2021:3946
Red Hat OpenStack 13 redis 3.2.8-5.el7ost RHSA-2021:3980
Red Hat OpenStack 10 redis 3.2.8-5.el7ost RHSA-2021:3971

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 redis +2 5.0.3-5.module_el8.4.0+2583+b9845322 ALSA-2021:3945, ALSA-2021:3918

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 redis 5.0.3-5.module+el8.4.0+659+cf535ef1 RLSA-2021:3945, RLSA-2021:3918
ReleasePackageFixed inAdvisory
SLES 15 SP3 redis 6.0.14-6.8.1 SUSE-SU-2021:3772-1
SLES 15 SP2 redis 6.0.14-6.8.1 SUSE-SU-2021:3772-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis 6.2.6-1.1 openSUSE-SU-2024:11563-1
openSUSE Leap 15.3 redis 6.0.14-6.8.1 openSUSE-SU-2021:3772-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redis 6.2.6-r0 —
Alpine v3.23 redis 6.2.6-r0 —
Alpine v3.22 redis 6.2.6-r0 —
Alpine v3.21 redis 6.2.6-r0 —
Alpine v3.20 redis 6.2.6-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 6.2.6-r0 —
Alpine v3.18 redis 6.2.6-r0 —
Alpine v3.17 redis 6.2.6-r0 —
Alpine v3.16 redis 6.2.6-r0 —
Alpine v3.15 redis 6.2.6-r0 —
Alpine v3.14 redis 6.2.6-r0 —
Alpine v3.13 redis 6.0.16-r0 —
Alpine v3.12 redis 5.0.14-r0 —
Alpine v3.11 redis 5.0.14-r0 —

Azure Linux

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

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 redis +2 5.0.3-5.module+el8.4.0+20382+7694043a ELSA-2021-3945, ELSA-2021-3918

Advisories 19

References