CVE-2021-32761
published high CVSS 3.1 · 7.5Integer overflow issues with *BIT commands on 32-bit systems
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| redis | — | redis>= 2.2, < 5.0.13 · >= 6.0.0, < 6.0.15 · >= 6.2.0, < 6.2.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2REDIS6-2023-005 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | redis | Fixed | 6.2.5-r0 | Package fix record |
| Debian | stretch | redis | Advisory build | 3:3.2.6-3+deb9u5 | DLA-2717-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | redisaarch64 | Advisory build | 6.2.5-1.2 | OPENSUSE-SU-2024:11299-1 |
| Ubuntu | bionic | redis | Advisory build | 5:4.0.9-1ubuntu0.2+esm3 | USN-5221-1 |
| Amazon Linux | AL2 | redisaarch64 | Listed in advisory | Not stated | ALAS2REDIS6-2023-005 |
| Alpine Linux | v3.11 | redis | Fixed | 5.0.13-r0 | Package fix record |
Show 30 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.12 | redis | Fixed | 5.0.13-r0 | Package fix record |
| Alpine Linux | v3.13 | redis | Fixed | 6.0.13-r0 | Package fix record |
| Alpine Linux | v3.14 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.15 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.16 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.17 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.18 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.19 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.20 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.21 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.22 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.23 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Alpine Linux | v3.24 | redis | Fixed | 6.2.5-r0 | Package fix record |
| Debian | stretch | redis | Advisory build | 3:3.2.6-3+deb9u6 | DLA-2717-2 |
| 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 | esm | redis | Advisory build | 2:2.8.4-2ubuntu0.2+esm2 | USN-5221-1 |
| Ubuntu | xenial | redis | Advisory build | 2:3.0.6-1ubuntu0.4+esm1 | USN-5221-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 |
| Ubuntu | esm | redis-server | Advisory build | 2:2.8.4-2ubuntu0.2+esm2 | USN-5221-1 |
| Ubuntu | esm | redis-tools | Advisory build | 2:2.8.4-2ubuntu0.2+esm2 | USN-5221-1 |
| Ubuntu | xenial | redis-sentinel | Advisory build | 2:3.0.6-1ubuntu0.4+esm1 | USN-5221-1 |
| Ubuntu | xenial | redis-server | Advisory build | 2:3.0.6-1ubuntu0.4+esm1 | USN-5221-1 |
| Ubuntu | xenial | redis-tools | Advisory build | 2:3.0.6-1ubuntu0.4+esm1 | USN-5221-1 |
| Amazon Linux | AL2 | redisnoarch | Listed in advisory | Not stated | ALAS2REDIS6-2023-005 |
| Amazon Linux | AL2 | redissrc | Listed in advisory | Not stated | ALAS2REDIS6-2023-005 |
| Amazon Linux | AL2 | redisx86_64 | Listed in advisory | Not stated | ALAS2REDIS6-2023-005 |
Description
Redis is an in-memory database that persists on disk. A vulnerability involving out-of-bounds read and integer overflow to buffer overflow exists starting with version 2.2 and prior to versions 5.0.13, 6.0.15, and 6.2.5. On 32-bit systems, Redis `*BIT*` command are vulnerable to integer overflow that can potentially be exploited to corrupt the heap, leak arbitrary heap contents or trigger remote code execution. The vulnerability involves changing the default `proto-max-bulk-len` configuration parameter to a very large value and constructing specially crafted commands bit commands. This problem only affects Redis on 32-bit platforms, or compiled as a 32-bit binary. Redis versions 5.0.`3m 6.0.15, and 6.2.5 contain patches for this issue. 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.
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
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| redis | redis | >= 2.2, < 5.0.13 (affected)>= 6.0.0, < 6.0.15 (affected)>= 6.2.0, < 6.2.5 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-125 CWE-125: Out-of-bounds Read
- CWE-680 CWE-680: Integer Overflow to Buffer Overflow
References
8- https://github.com/redis/redis/security/advisories/GHSA-8wxq-j7rp-g8wj
- [debian-lts-announce] 20210722 [SECURITY] [DLA 2717-1] redis security update https://lists.debian.org/debian-lts-announce/2021/07/msg00017.html
- [debian-lts-announce] 20210827 [SECURITY] [DLA 2717-2] redis security update https://lists.debian.org/debian-lts-announce/2021/08/msg00026.html
- FEDORA-2021-76cf1653b3 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6O7AUOROBYGP5IMGJPC5HZ3R2RB6GZ5X/
- FEDORA-2021-10d54c261f https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VGX7RRAWGXWXEAKJTQYSDSBO2BC3SAHD/
- GLSA-202209-17 https://security.gentoo.org/glsa/202209-17
- https://security.netapp.com/advisory/ntap-20210827-0004/
- DSA-5001 https://www.debian.org/security/2021/dsa-5001
Provider assertions
2GitHub_M · cna
Integer overflow issues with *BIT commands on 32-bit systems
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fc665b3078b3988f551c7b9b99af05304d88979ac960347da7343b765d176bc6
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record