CVE-2021-32675
DoS vulnerability in Redis
Reported by github_m · Published October 4, 2021
Redis is an open source, in-memory database that persists on disk. When parsing an incoming Redis Standard Protocol (RESP) request, Redis allocates memory according to user-specified values which determine the number of elements (in the multi-bulk header) and size of each element (in the bulk header). An attacker delivering specially crafted requests over multiple connections can cause the server to allocate significant amount of memory. Because the same parsing mechanism is used to handle authentication requests, this vulnerability can also be exploited by unauthenticated users. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate this problem without patching the redis-server executable is to block access to prevent unauthenticated users from connecting to Redis. This can be done in different ways: Using network access control tools like firewalls, iptables, security groups, etc. or Enabling TLS and requiring users to authenticate using client side certificates.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| valkey | Bitnami | 6.2.6, 6.0.16, 5.0.14 |
| redis | Ubuntu:Pro:14.04:LTS | 2:2.8.4-2ubuntu0.2+esm2 |
| redis | redis | 6.2.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | < 5.0.14, >= 6.0.0, < 6.0.16, >= 6.2.0, < 6.2.6 |
| redis | redis | 0, 6.0.0, 6.2.0 |
| alpine | redis | 0, 0, 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-32675
vulnetix vdb fixes CVE-2021-32675
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-32675/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
- [geode-notifications] 20211013 [GitHub] [geode] jdeppe-pivotal opened a new pull request #6994: GEODE-9676: Limit array and string sizes for unauthenticated Radish connections mailing-listx_refsource_MLIST
- 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