CVE-2021-32761: Redis - Integer Overflow
- Cve: CVE-2021-32761
- Name: Redis - Integer Overflow
- 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.
- Impact: Attackers can corrupt heap, leak heap contents, or trigger remote code execution on vulnerable 32-bit Redis systems.
- Remediation: Update Redis to version 5.0.13, 6.0.15, or 6.2.5 or later. As a workaround, restrict unprivileged users from modifying `proto-max-bulk-len` via ACL.
- Vulnerability type: integer_overflow
- Vulnerability impact: information_disclosure, remote_code_execution, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.30103
- Epss percentile: 0.98242
- Assignee: [email protected]
- Published at: 2021-07-21T21:15:07Z
- Age in days: 1952
- Modified at: 2026-06-17T03:53:34Z
- Patch available: yes
- References total: 8
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32761
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
| CWE-190 | Integer Overflow or Wraparound |
Hackerone
- Reports: 1
- Rank: 5211
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/redis/redis/security/advisories/GHSA-8wxq-j7rp-g8wj | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/07/msg00017.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/08/msg00026.html | Mailing List, Third Party Advisory |
| https://security.gentoo.org/glsa/202209-17 | Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20210827-0004/ | Third Party Advisory |
| https://www.debian.org/security/2021/dsa-5001 | Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6O7AUOROBYGP5IMGJPC5HZ3R2RB6GZ5X/ | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VGX7RRAWGXWXEAKJTQYSDSBO2BC3SAHD/ |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| redislabs:redis | >= 6.2.0, < 6.2.5; >= 6.0, < 6.0.15; >= 2.2.0, < 5.0.13 | /v1/products/redislabs/redis |
| debian:debian_linux | = 11.0, = 10.0, = 9.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 34, = 33 | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| redis/redis | fix, security_advisory | yes | /v1/repositories/redis/redis |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since