CVE-2021-21309
published medium CVSS 3.1 · 5.4Integer overflow on 32-bit systems
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| redis | — | redis< 5.0.11 · >= 6.0.0, < 6.0.11 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | redis | Fixed | 6.2.0-r0 | Package fix record |
| Debian | stretch | redis | Advisory build | 3:3.2.6-3+deb9u4 | DLA-2576-1 |
| SUSE / openSUSE | SLE-15-SP2 | redisaarch64 | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| Ubuntu | bionic | redis | Advisory build | 5:4.0.9-1ubuntu0.2+esm3 | USN-5221-1 |
| Alpine Linux | v3.10 | redis | Fixed | 5.0.11-r0 | Package fix record |
| Alpine Linux | v3.11 | redis | Fixed | 5.0.11-r0 | Package fix record |
| Alpine Linux | v3.12 | redis | Fixed | 5.0.11-r0 | Package fix record |
Show 28 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.13 | redis | Fixed | 6.0.11-r0 | Package fix record |
| Alpine Linux | v3.14 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.15 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.16 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.17 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.18 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.19 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.20 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.21 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.22 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.23 | redis | Fixed | 6.2.0-r0 | Package fix record |
| Alpine Linux | v3.24 | redis | Fixed | 6.2.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP2 | redisppc64le | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| SUSE / openSUSE | SLE-15-SP2 | rediss390x | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| SUSE / openSUSE | SLE-15-SP2 | redisx86_64 | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| SUSE / openSUSE | SLE-15-SP3 | redisaarch64 | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| SUSE / openSUSE | SLE-15-SP3 | redisppc64le | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| SUSE / openSUSE | SLE-15-SP3 | rediss390x | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| SUSE / openSUSE | SLE-15-SP3 | redisx86_64 | Advisory build | 6.0.13-1.10.1 | SUSE-SU-2021:1652-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | redisi586 | Advisory build | 6.0.13-lp152.2.3.1 | OPENSUSE-SU-2021:0682-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | redisx86_64 | Advisory build | 6.0.13-lp152.2.3.1 | OPENSUSE-SU-2021:0682-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | redisaarch64 | Advisory build | 6.2.5-1.2 | OPENSUSE-SU-2024:11299-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | redisppc64le | Advisory build | 6.2.5-1.2 | OPENSUSE-SU-2024:11299-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rediss390x | Advisory build | 6.2.5-1.2 | OPENSUSE-SU-2024:11299-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | redisx86_64 | Advisory build | 6.2.5-1.2 | OPENSUSE-SU-2024:11299-1 |
| Ubuntu | bionic | redis-sentinel | Advisory build | 5:4.0.9-1ubuntu0.2+esm3 | USN-5221-1 |
| Ubuntu | bionic | redis-server | Advisory build | 5:4.0.9-1ubuntu0.2+esm3 | USN-5221-1 |
| Ubuntu | bionic | redis-tools | Advisory build | 5:4.0.9-1ubuntu0.2+esm3 | USN-5221-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| redis | redis | < 5.0.11 (affected)>= 6.0.0, < 6.0.11 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-190 CWE-190: Integer Overflow or Wraparound
References
4Provider assertions
2GitHub_M · cna
Integer overflow on 32-bit systems
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 10a6906d5cfab7d2768b27eb98afc48659c9050fcddc3581bf2f928799dc0b9f
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record