CVE-2021-32687
Integer overflow issue with intsets in Redis
Reported by github_m · Published October 4, 2021
Redis is an open source, in-memory database that persists on disk. An integer overflow bug affecting all versions of Redis can be exploited to corrupt the heap and potentially be used to leak arbitrary contents of the heap or trigger remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration parameter to a very large value and constructing specially crafted commands to manipulate sets. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the set-max-intset-entries 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.6-r0, 6.0.16-r0, 5.0.14-r0 |
| redis | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| redis | redis | 6.2.6, 6.0.16, 5.0.14 |
| keydb | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| redis | Ubuntu:Pro:14.04:LTS | 2:2.8.4-2ubuntu0.2+esm2 |
| valkey | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| redis | Ubuntu:Pro:16.04:LTS | 2:3.0.6-1ubuntu0.4+esm1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | < 5.0.14, >= 6.0.0, < 6.0.16, >= 6.2.0, < 6.2.6 |
| alpine | redis | 0, 0, 0 |
| redis | redis | 0, 6.0.0, 6.2.0 |
Timeline
- Oct 4, 2021 CVE Published
- Oct 5, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 7, 2026 Distribution Patch (13 in total, the first dated here)
- Mar 7, 2026 Security Advisory (15 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-32687
vulnetix vdb fixes CVE-2021-32687
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-32687/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- FEDORA-2021-8913c7900c vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-61c487f241 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-aa94492a09 vendor-advisoryx_refsource_FEDORA
- DSA-5001 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC
- x_refsource_CONFIRM
- GLSA-202209-17 vendor-advisoryx_refsource_GENTOO