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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | redis | 3:3.2.6-3+deb9u8 | DLA-2810-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | webdis | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | hiredis | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pcp | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | redis | 6.2.6-1 | — |
Advisories 6
- DSA-5001-1 redis - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2810-1 redis - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11563-1 redis-6.2.6-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:3772-1 Security update for redis SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3772-1 Security update for redis SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2022-1579 Redis: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 27, 2023
References
- https://github.com/redis/redis/security/advisories/GHSA-833w-8v3m-8wwr
- https://github.com/redis/redis/commit/0215324a66af949be39b34be2d55143232c1cb71
- FEDORA-2021-8913c7900c vendor-advisory
- FEDORA-2021-61c487f241 vendor-advisory
- FEDORA-2021-aa94492a09 vendor-advisory
- DSA-5001 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20211104-0003/
- GLSA-202209-17 vendor-advisory