
CVE catalog
CVE-2021-21309
redis: CVE-2021-21309
- Severity
- High · CVSS 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.79% · Oct 25, 2026
Redis is an open-source, in-memory database that persists on disk. In affected versions of Redis an integer overflow bug in 32-bit Redis version 4.0 or newer could be exploited to corrupt the heap and potentially result with remote code execution. Redis 4.0 or newer uses a configurable limit for the maximum supported bulk input size. By default, it is 512MB which is a safe value for all platforms. If the limit is significantly increased, receiving a large request from a client may trigger several integer overflow scenarios, which would result with buffer overflow and heap corruption. We believe this could in certain conditions be exploited for remote code execution. By default, authenticated Redis users have access to all configuration parameters and can therefore use the “CONFIG SET proto-max-bulk-len” to change the safe default, making the system vulnerable. **This problem only affects 32-bit Redis (on a 32-bit system, or as a 32-bit executable running on a 64-bit system).** The problem is fixed in version 6.2, and the fix is back ported to 6.0.11 and 5.0.11. Make sure you use one of these versions if you are running 32-bit Redis. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent clients from directly executing `CONFIG SET`: Using Redis 6.0 or newer, ACL configuration can be used to block the command. Using older versions, the `rename-command` configuration directive can be used to rename the command to a random string unknown to users, rendering it inaccessible. Please note that this workaround may have an additional impact on users or operational systems that expect `CONFIG SET` to behave in certain ways.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | redis | sid | 5:8.0.6-3 | fixed |
| Debian | redis | forky | 5:8.0.6-3 | fixed |
| Debian | redis | trixie | 5:8.0.2-3+deb13u2 | fixed |
| Debian | redis | trixie-security | 5:8.0.2-3+deb13u3 | fixed |
| Debian | redis | bookworm | 5:7.0.15-1~deb12u7 | fixed |
| Debian | redis | bookworm-security | 5:7.0.15-1~deb12u10 | fixed |
| Alpine | redis | 3.10 | 5.0.11-r0 | fixed |
| Alpine | redis | 3.11 | 5.0.11-r0 | fixed |
| Alpine | redis | 3.12 | 5.0.11-r0 | fixed |
| Alpine | redis | 3.13 | 6.0.11-r0 | fixed |
| Alpine | redis | 3.14 | 6.2.0-r0 | fixed |
| Alpine | redis | 3.15 | 6.2.0-r0 | fixed |
| Alpine | redis | 3.16 | 6.2.0-r0 | fixed |
| Alpine | redis | 3.17 | 6.2.0-r0 | fixed |
| Alpine | redis | 3.18 | 6.2.0-r0 | fixed |
| Alpine | redis | 3.19 | 6.2.0-r0 | fixed |
| Ubuntu | redis | pro | 5:5.0.5-2build1 | vulnerable |
| Ubuntu | redis | pro | 5:5.0.6-1 | vulnerable |
| Ubuntu | redis | pro | 5:5.0.7-1 | vulnerable |
| Ubuntu | redis | pro | 5:5.0.7-2 | vulnerable |
| Ubuntu | redis | pro | 5:5.0.7-2ubuntu0.1~esm1 | vulnerable |
| Ubuntu | redis | pro | 5:5.0.7-2ubuntu0.1 | vulnerable |
| Ubuntu | redis | pro | 5:5.0.7-2ubuntu0.1+esm1 | fixed |
| Suse | redis | linux enterprise module for server applications 15 sp2 | 6.0.13-1.10.1 | fixed |
| Suse | redis | linux enterprise module for server applications 15 sp3 | 6.0.13-1.10.1 | fixed |
| Ubuntu | redis | pro | 4:4.0.1-7 | vulnerable |
| Ubuntu | redis | pro | 4:4.0.2-6 | vulnerable |
| Ubuntu | redis | pro | 4:4.0.2-9 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.5-1 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.6-1 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.6-2 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.7-1 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.8-1 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.8-2 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.9-1 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.9-1ubuntu0.1 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.9-1ubuntu0.2 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.9-1ubuntu0.2+esm2 | vulnerable |
| Ubuntu | redis | pro | 5:4.0.9-1ubuntu0.2+esm3 | fixed |
| Opensuse | redis | leap 15.2 | 6.0.13-lp152.2.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | redis | source | sid | 5:6.0.11-1 | not yet assigned | Not reported | [983446] |
| Debian | redis | source | forky | 5:6.0.11-1 | not yet assigned | Not reported | [983446] |
| Debian | redis | source | trixie | 5:6.0.11-1 | not yet assigned | Not reported | [983446] |
| Debian | redis | source | bookworm | 5:6.0.11-1 | not yet assigned | Not reported | [983446] |
| Alpine | redis | apk | 3.10 | 5.0.11-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.11 | 5.0.11-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.12 | 5.0.11-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.13 | 6.0.11-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.14 | 6.2.0-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.15 | 6.2.0-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.16 | 6.2.0-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.17 | 6.2.0-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.18 | 6.2.0-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Alpine | redis | apk | 3.19 | 6.2.0-r0 | Not reported | ALPINE-CVE-2021-21309 | Not reported |
| Ubuntu | redis | deb | pro | 5:5.0.7-2ubuntu0.1+esm1 | Not reported | USN-5221-1 | Not reported |
| Suse | redis | rpm | linux enterprise module for server applications 15 sp2 | 6.0.13-1.10.1 | Not reported | SUSE-SU-2021:1652-1 | Not reported |
| Suse | redis | rpm | linux enterprise module for server applications 15 sp3 | 6.0.13-1.10.1 | Not reported | SUSE-SU-2021:1652-1 | Not reported |
| Ubuntu | redis | deb | pro | 5:4.0.9-1ubuntu0.2+esm3 | Not reported | UBUNTU-CVE-2021-21309 | Not reported |
| Opensuse | redis | rpm | leap 15.2 | 6.0.13-lp152.2.3.1 | Not reported | OPENSUSE-SU-2021:0682-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [redis]Unknown
Details (4)
5:7.0.15-1~deb12u7· all · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u7· all · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· all · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· all · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
- [redis-sentinel]Unknown
Source package: [redis]
Details (4)
5:7.0.15-1~deb12u7· amd64 · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u7· arm64 · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· amd64 · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· arm64 · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
- [redis-server]Unknown
Source package: [redis]
Details (4)
5:7.0.15-1~deb12u7· amd64 · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u7· arm64 · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· amd64 · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· arm64 · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
- [redis-tools]Unknown
Source package: [redis]
Details (4)
5:7.0.15-1~deb12u7· amd64 · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u7· arm64 · bookwormFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· amd64 · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
5:7.0.15-1~deb12u9· arm64 · bookworm-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · bookworm; dsa · redis · debian · 12
[Debian 13 (Trixie)]
- [redis]Unknown
Details (5)
5:8.0.2-3+deb13u2· all · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· all · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· all · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· all · trixie-security · Historical versionFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u3· all · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
- [redis-sentinel]Unknown
Source package: [redis]
Details (5)
5:8.0.2-3+deb13u2· amd64 · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· arm64 · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· arm64 · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u3· amd64 · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
- [redis-server]Unknown
Source package: [redis]
Details (5)
5:8.0.2-3+deb13u2· amd64 · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· arm64 · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· arm64 · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u3· amd64 · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
- [redis-tools]Unknown
Source package: [redis]
Details (5)
5:8.0.2-3+deb13u2· amd64 · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· arm64 · trixieFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u2· arm64 · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
5:8.0.2-3+deb13u3· amd64 · trixie-securityFixed · Fixed:
5:6.0.11-1dsa · redis · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2021_1652-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-21309]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-21309]
- [https://osv.dev/vulnerability/DLA-2576-1]
- [https://osv.dev/vulnerability/SUSE-SU-2021:1652-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-21309]
- [https://osv.dev/vulnerability/USN-5221-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:0682-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-21309]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-21309.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]