CVE-2021-32761
Integer overflow issues with *BIT commands on 32-bit systems
Reported by github_m · Published July 21, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| redis | Alpine | 6.2.5-r0, 6.0.13-r0, 5.0.13-r0 |
| redis | Ubuntu:Pro:16.04:LTS | 2:3.0.6-1ubuntu0.4+esm1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | >= 2.2, < 5.0.13, >= 6.0.0, < 6.0.15, >= 6.2.0, < 6.2.5 |
| alpine | redis | 0, 0, 0 |
| redis | redis | 2.2, 6.0.0, 6.2.0 |
Timeline
- Jul 21, 2021 CVE Published
- Jul 22, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 7, 2026 Security Advisory (3 in total, the first dated here)
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32761
vulnetix vdb fixes CVE-2021-32761
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32761/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [debian-lts-announce] 20210722 [SECURITY] [DLA 2717-1] redis security update mailing-listx_refsource_MLIST
- FEDORA-2021-10d54c261f vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-76cf1653b3 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- [debian-lts-announce] 20210827 [SECURITY] [DLA 2717-2] redis security update mailing-listx_refsource_MLIST
- DSA-5001 vendor-advisoryx_refsource_DEBIAN
- GLSA-202209-17 vendor-advisoryx_refsource_GENTOO