CVE-2021-32761
Integer overflow issues with *BIT commands on 32-bit systems
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
Integer overflow issues with *BIT commands on 32-bit systems
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
CVE-2021-32761- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-125, CWE-680
- Updated
- 2026-11-02
EUVDEUVD-2021-19529
7.5
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
EUVD-2021-19529- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
NVD
7.5
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
CVE-2021-32761- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.0 Medium
AV:N/AC:M/Au:S/C:P/I:P/A:P - Weakness
- CWE-125, CWE-680, CWE-190
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-32761
7.5
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
ALPINE-CVE-2021-32761- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVAZL-6850
7.5
CVE-2021-32761 affecting package redis for versions less than 6.2.5-1
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
AZL-6850- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2021-32761
7.5
CVE-2021-32761 does not affect BellSoft software
- Record
BELL-CVE-2021-32761- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSV
7.5
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
CVE-2021-32761- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-32761
7.5
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
DEBIAN-CVE-2021-32761- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-32761
7.5
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-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
- Record
UBUNTU-CVE-2021-32761- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2021-0373 No score
Updated redis package fixes security vulnerabilities
An integer overflow bug in Redis version 6.0 or newer could be exploited using
the STRALGO LCS command to corrupt the heap and potentially result with
remote code execution (CVE-2021-29477).
An integer overflow bug in Redis 6.2 before 6.2.3 could be exploited to corrupt the heap and potentially result with remote code execution (CVE-2021-29478).
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 (CVE-2021-32761).
- Record
MGASA-2021-0373- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11299-1 No score
redis-6.2.5-1.2 on GA media
These are all security issues fixed in the redis-6.2.5-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11299-1- Updated
- 2026-11-02
OSVUSN-5221-1 No score
redis vulnerabilities
It was discovered that Redis incorrectly handled certain specially crafted Lua scripts. A remote attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2021-32626)
It was discovered that Redis incorrectly handled some malformed requests when using Redis Lua Debugger. A remote attacker could possibly use this issue to cause a denial of service or other unspecified impact. This issue only affected Ubuntu 18.04 ESM and Ubuntu 20.04 ESM. (CVE-2021-32672)
It was discovered that Redis incorrectly handled certain Redis Standard Protocol (RESP) requests. A remote attacker could possibly use this issue to cause a denial of service. (CVE-2021-32675)
It was discovered that Redis incorrectly handled some configuration parameters with specially crafted network payloads. A remote attacker could possibly use this issue to cause a denial of service or execute arbitrary code. Vulnerabilities CVE-2021-32627 and CVE-2021-41099 only affected Ubuntu 18.04 ESM and Ubuntu 20.04 ESM. (CVE-2021-32627, CVE-2021-32628, CVE-2021-32687, CVE-2021-41099).
It was discovered that Redis incorrectly handled memory when processing certain input in 32-bit systems. A remote attacker could possibly use this issue to cause a denial of service or execute arbitrary code. One vulnerability (CVE-2021-32761) only affected Ubuntu 14.04 ESM, Ubuntu 16.04 ESM and Ubuntu 18.04 ESM and another vulnerability (CVE-2021-21309) only affected Ubuntu 18.04 ESM. (CVE-2021-32761, CVE-2021-21309).
- Record
USN-5221-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
redisAlpine:v3.11 |
2.2.0 up to 5.0.13-r0 | 5.0.13-r0 |
redisAlpine:v3.12 |
2.2.0 up to 5.0.13-r0 | 5.0.13-r0 |
redisAlpine:v3.13 |
2.2.0 up to 6.0.13-r0 | 6.0.13-r0 |
redisAlpine:v3.14 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.15 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.16 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.17 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.18 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.19 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.20 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
Show 19 moreShow less
| Package | Affected | Fixed |
|---|---|---|
redisAlpine:v3.21 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.22 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.23 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAlpine:v3.24 |
2.2.0 up to 6.2.5-r0 | 6.2.5-r0 |
redisAzure Linux:2 |
before 6.2.5-1 | 6.2.5-1 |
redisDebian:12 |
before 5:6.0.15-1 | 5:6.0.15-1 |
redisDebian:13 |
before 5:6.0.15-1 | 5:6.0.15-1 |
redisDebian:14 |
before 5:6.0.15-1 | 5:6.0.15-1 |
redisDebian:9 |
before 3:3.2.6-3+deb9u5, plus listed versions 3:3.2.6-13:3.2.6-23:3.2.6-33:3.2.6-3+deb9u13:3.2.6-3+deb9u23:3.2.6-3+deb9u33:3.2.6-3+deb9u4 |
3:3.2.6-3+deb9u5 |
redisDebian:9 |
before 3:3.2.6-3+deb9u6, plus listed versions 3:3.2.6-13:3.2.6-23:3.2.6-33:3.2.6-3+deb9u13:3.2.6-3+deb9u23:3.2.6-3+deb9u33:3.2.6-3+deb9u43:3.2.6-3+deb9u5 |
3:3.2.6-3+deb9u6 |
redisMageia:8 From an advisory covering 3 CVEs |
before 6.0.15-1.mga8 | 6.0.15-1.mga8 |
redisUbuntu:Pro:14.04:LTS |
before 2:2.8.4-2ubuntu0.2+esm2, plus listed versions 2:2.6.13-12:2.6.16-32:2.8.0-12:2.8.2-12:2.8.4-22:2.8.4-2ubuntu0.22:2.8.4-2ubuntu0.2+esm1 |
2:2.8.4-2ubuntu0.2+esm2 |
redisUbuntu:Pro:16.04:LTS |
before 2:3.0.6-1ubuntu0.4+esm1, plus listed versions 2:3.0.3-32:3.0.5-12:3.0.5-22:3.0.5-32:3.0.5-4 Show 4 moreShow less2:3.0.6-12:3.0.6-1ubuntu0.22:3.0.6-1ubuntu0.32:3.0.6-1ubuntu0.4 |
2:3.0.6-1ubuntu0.4+esm1 |
redisUbuntu:Pro:18.04:LTS |
before 5:4.0.9-1ubuntu0.2+esm3, plus listed versions 4:4.0.1-74:4.0.2-64:4.0.2-95:4.0.5-15:4.0.6-1 Show 8 moreShow less5:4.0.6-25:4.0.7-15:4.0.8-15:4.0.8-25:4.0.9-15:4.0.9-1ubuntu0.15:4.0.9-1ubuntu0.25:4.0.9-1ubuntu0.2+esm2 |
5:4.0.9-1ubuntu0.2+esm3 |
redisUbuntu:Pro:14.04:LTS From an advisory covering 9 CVEs |
before 2:2.8.4-2ubuntu0.2+esm2, plus listed versions 2:2.6.13-12:2.6.16-32:2.8.0-12:2.8.2-12:2.8.4-22:2.8.4-2ubuntu0.22:2.8.4-2ubuntu0.2+esm1 |
2:2.8.4-2ubuntu0.2+esm2 |
redisUbuntu:Pro:16.04:LTS From an advisory covering 9 CVEs |
before 2:3.0.6-1ubuntu0.4+esm1, plus listed versions 2:3.0.3-32:3.0.5-12:3.0.5-22:3.0.5-32:3.0.5-4 Show 4 moreShow less2:3.0.6-12:3.0.6-1ubuntu0.22:3.0.6-1ubuntu0.32:3.0.6-1ubuntu0.4 |
2:3.0.6-1ubuntu0.4+esm1 |
redisUbuntu:Pro:18.04:LTS From an advisory covering 9 CVEs |
before 5:4.0.9-1ubuntu0.2+esm3, plus listed versions 4:4.0.1-74:4.0.2-64:4.0.2-95:4.0.5-15:4.0.6-1 Show 8 moreShow less5:4.0.6-25:4.0.7-15:4.0.8-15:4.0.8-25:4.0.9-15:4.0.9-1ubuntu0.15:4.0.9-1ubuntu0.25:4.0.9-1ubuntu0.2+esm2 |
5:4.0.9-1ubuntu0.2+esm3 |
redisUbuntu:Pro:20.04:LTS From an advisory covering 9 CVEs |
before 5:5.0.7-2ubuntu0.1+esm1, plus listed versions 5:5.0.5-2build15:5.0.6-15:5.0.7-15:5.0.7-25:5.0.7-2ubuntu0.1~esm15:5.0.7-2ubuntu0.1 |
5:5.0.7-2ubuntu0.1+esm1 |
redisopenSUSE:Tumbleweed From an advisory covering 9 CVEs |
before 6.2.5-1.2 | 6.2.5-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-32761 is a high vulnerability (CVSS 7.5) in Redis, published July 21, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 30.1%, the 98th percentile. Fixed in redis 5.0.13-r0.
References
github.com/redis/redis/security/advisories/GHSA-8wxq-j7rp-g8wj
lists.debian.org/debian-lts-announce/2021/07/msg00017.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VGX7RRAWGXWXEAKJTQYSDSBO2BC3SAHD
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6O7AUOROBYGP5IMGJPC5HZ3R2RB6GZ5X
security.netapp.com/advisory/ntap-20210827-0004
lists.debian.org/debian-lts-announce/2021/08/msg00026.html
Show 32 moreShow less
debian.org/security/2021/dsa-5001
security.gentoo.org/glsa/202209-17
security.alpinelinux.org/vuln/CVE-2021-32761
nvd.nist.gov/vuln/detail/CVE-2021-32761
docs.bell-sw.com/security/cves/CVE-2021-32761
security-tracker.debian.org/tracker/CVE-2021-32761
advisories.mageia.org/MGASA-2021-0373.html
bugs.mageia.org/show_bug.cgi?id=29036
lists.fedoraproject.org/archives/list/[email protected]/thread/BPWBIZXA67JFIB63W2CNVVILCGIC2ME5
lists.fedoraproject.org/archives/list/[email protected]/thread/BHWOF7CBVUGDK3AN6H3BN3VNTH2TDUZZ
lists.fedoraproject.org/archives/list/[email protected]/thread/SN7INTZFE34MIQJO7WDDTIY5LIBGN6GI
debian.org/lts/security/2021/dla-2717
ubuntu.com/security/CVE-2021-32761
ubuntu.com/security/notices/USN-5221-1
cve.org/CVERecord?id=CVE-2021-32761
ubuntu.com/security/CVE-2021-21309
ubuntu.com/security/CVE-2021-32626
ubuntu.com/security/CVE-2021-32627
ubuntu.com/security/CVE-2021-32628
ubuntu.com/security/CVE-2021-32672
ubuntu.com/security/CVE-2021-32675
ubuntu.com/security/CVE-2021-32687
ubuntu.com/security/CVE-2021-41099
suse.com/security/cve/CVE-2015-8080
suse.com/security/cve/CVE-2016-10517
suse.com/security/cve/CVE-2017-15047
suse.com/security/cve/CVE-2018-11218
suse.com/security/cve/CVE-2021-21309
suse.com/security/cve/CVE-2021-29477
suse.com/security/cve/CVE-2021-29478
suse.com/security/cve/CVE-2021-32625
suse.com/security/cve/CVE-2021-32761