Vulnerability · Published Jan 20, 2023 · Assigned by GitHub_M
CVE-2022-35977Integer overflow in certain command arguments can drive Redis to OOM panic
Medium 5.5
In plain English
A medium-severity integer overflow in redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 14.0% (higher than 97% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | redis | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:8 | redis-devel | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:8 | redis-doc | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| Alpine:v3.20 | redis | 7.0.8-r0 | ALPINE-CVE-2022-35977 |
| Alpine:v3.21 | redis | 7.0.8-r0 | ALPINE-CVE-2022-35977 |
| Alpine:v3.22 | redis | 7.0.8-r0 | ALPINE-CVE-2022-35977 |
| Alpine:v3.23 | redis | 7.0.8-r0 | ALPINE-CVE-2022-35977 |
| Alpine:v3.24 | redis | 7.0.8-r0 | ALPINE-CVE-2022-35977 |
| Debian:12 | redis | 5:7.0.8-1 | DEBIAN-CVE-2022-35977 |
| Debian:13 | redis | 5:7.0.8-1 | DEBIAN-CVE-2022-35977 |
| Debian:14 | redis | 5:7.0.8-1 | DEBIAN-CVE-2022-35977 |
| Rocky Linux:8 | redis | 0:6.2.17-1.module+el8.10.0+1923+5b85c6a7 | RLSA-2025:0595 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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