CVE-2022-35977: Redis is an in-memory database that persists on disk.
Medium CVSS 5.5
- CVE id
- CVE-2022-35977
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Redis Runtimes and servers |
>= 6.0.0, < 6.0.17 >= 6.2.0, < 6.2.9 >= 7.0.0, < 7.0.8 |
6.0.17, 6.2.9, 7.0.8 |
How to fix it
Upgrade Redis to the fixed release of the line you run: 6.0.17, 6.2.9, 7.0.8.
redis-server --version
- Install the patched Redis release of your series (the redis image tag or your packages) and restart it; on a managed service, apply the provider's maintenance update.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2022-35977 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-35977
- Web: https://github.com/redis/redis/commit/1ec82e6e97e1db06a72ca505f9fbf6b981f31ef7
- Web: https://github.com/redis/redis/releases/tag/6.0.17
- Web: https://github.com/redis/redis/releases/tag/6.2.9
- Web: https://github.com/redis/redis/releases/tag/7.0.8
- Web: https://github.com/redis/redis/security/advisories/GHSA-mrcw-fhw9-fj8j
- Web: https://github.com/redis/redis/commit/1ec82e6e97e1db06a72ca505f9fbf6b981f31ef7
- Web: https://github.com/redis/redis/releases/tag/6.0.17
- Web: https://github.com/redis/redis/releases/tag/6.2.9
- Web: https://github.com/redis/redis/releases/tag/7.0.8
- Web: https://github.com/redis/redis/security/advisories/GHSA-mrcw-fhw9-fj8j
- Web: https://lists.debian.org/debian-lts-announce/2024/11/msg00031.html
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.