CVE-2021-32627
Integer overflow issue with Streams in Redis
Reported by github_m · Published October 4, 2021
Redis is an open source, in-memory database that persists on disk. In affected versions an integer overflow bug in Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and constructing specially crafted very large stream elements. The problem is fixed in Redis 6.2.6, 6.0.16 and 5.0.14. For users unable to upgrade 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.6-r0, 6.0.16-r0, 5.0.14-r0 |
| valkey | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| redis | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| keydb | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| redis | Ubuntu:Pro:18.04:LTS | 5:4.0.9-1ubuntu0.2+esm3 |
| redis | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| harbor-redis | DHI | 6.2.6, 6.0.16, 5.0.14 |
| keydb | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | >= 5.0.0, < 5.0.14, >= 6.0.0, < 6.0.16, >= 6.2.0, < 6.2.6 |
| alpine | redis | 0, 0, 0 |
| redis | redis | 5.0.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)
- 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-32627
vulnetix vdb fixes CVE-2021-32627
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-32627/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_CONFIRM
- 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