CVE-2022-35977
Integer overflow in certain command arguments can drive Redis to OOM panic
Reported by github_m · Published January 20, 2023
Redis is an in-memory database that persists on disk. Authenticated users issuing specially crafted `SETRANGE` and `SORT(_RO)` commands can trigger an integer overflow, resulting with Redis attempting to allocate impossible amounts of memory and abort with an out-of-memory (OOM) panic. The problem is fixed in Redis versions 7.0.8, 6.2.9 and 6.0.17. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| redis6-devel | Amazon Linux | 6.2.11-1.amzn2023.0.1 |
| valkey | Bitnami | 7.0.8, 6.2.9, 6.0.17 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | >= 7.0, < 7.0.8, >= 6.2, < 6.2.9, < 6.0.17 |
| amazon:2023 | redis6-devel | 0 |
| amazon:2023 | redis6 | 0 |
| alpine | redis | 0, 0 |
| redis | redis | 7.0, 6.2, 0 |
| amazon:2023 | redis6-doc | 0 |
Timeline
- Jan 16, 2023 CVE Published
- Jan 21, 2023 EPSS Score (30 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 21, 2026 Security Advisory (3 in total, the first dated here)
- Jun 20, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-35977
vulnetix vdb fixes CVE-2022-35977
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-2022-35977/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/redis/redis/security/advisories/GHSA-mrcw-fhw9-fj8j x_refsource_CONFIRM
- https://github.com/redis/redis/commit/1ec82e6e97e1db06a72ca505f9fbf6b981f31ef7 x_refsource_MISC
- https://github.com/redis/redis/releases/tag/6.0.17 x_refsource_MISC
- https://github.com/redis/redis/releases/tag/6.2.9 x_refsource_MISC
- https://github.com/redis/redis/releases/tag/7.0.8 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/11/msg00031.html advisory