Skip to content
OpenAdvisories
High · 7.5 CVE-2021-32762 EUVD-2021-19530

Integer overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platforms

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. The redis-cli command line tool and redis-sentinel service may be vulnerable to integer overflow when parsing specially crafted large multi-bulk network replies. This is a result of a vulnerability in the underlying hiredis library which does not perform an overflow check before calling the calloc() heap allocation function. This issue only impacts systems with heap allocators that do not perform their own overflow checks. Most modern systems do and are therefore not likely to be affected. Furthermore, by default redis-sentinel uses the jemalloc allocator which is also not vulnerable. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14.

Affected products

VendorProductAffectedFixed
redis redis < 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
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 redis 3:3.2.6-3+deb9u8 DLA-2810-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS webdis No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS hiredis No fix yet —
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 3 pcp No fix yet —
Azure Linux 2 (CBL-Mariner) redis 6.2.6-1 —

Advisories 6

References