# CVE-2022-35977: Integer overflow in certain command arguments can drive Redis to OOM panic

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 14.1%, higher than 96% of CVEs (2026-12-01)
- Published: 2023-01-20T18:19:27.692Z
- Modified: 2026-09-08T08:48:18.925Z
- Also known as: BIT-KEYDB-2022-35977, BIT-REDIS-2022-35977, BIT-VALKEY-2022-35977, GHSA-mrcw-fhw9-fj8j
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- redis redis: >= 7.0, < 7.0.8; >= 6.2, < 6.2.9; < 6.0.17; from 6.0.0 before 6.0.17; from 6.2.0 before 6.2.9; from 7.0.0 before 7.0.8
- keydb (Bitnami): from 6.0.0 before 6.0.17; from 6.2.0 before 6.2.9; from 7.0.0 before 7.0.8
- redis (Bitnami): from 6.0.0 before 6.0.17; from 6.2.0 before 6.2.9; from 7.0.0 before 7.0.8
- valkey (Bitnami): from 6.0.0 before 6.0.17; from 6.2.0 before 6.2.9; from 7.0.0 before 7.0.8

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/redis/redis/security/advisories/GHSA-mrcw-fhw9-fj8j> (advisory, third-party-advisory, web)
- <https://github.com/redis/redis/commit/1ec82e6e97e1db06a72ca505f9fbf6b981f31ef7> (advisory, patch, third-party-advisory, web)
- <https://github.com/redis/redis/releases/tag/6.0.17> (advisory, release-notes, third-party-advisory, web)
- <https://github.com/redis/redis/releases/tag/6.2.9> (advisory, release-notes, third-party-advisory, web)
- <https://github.com/redis/redis/releases/tag/7.0.8> (advisory, release-notes, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00031.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-35977> (web)

## Sources

- CVE List: [CVE-2022-35977](https://www.cve.org/CVERecord?id=CVE-2022-35977), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2022-35977](https://nvd.nist.gov/vuln/detail/CVE-2022-35977), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KEYDB-2022-35977](https://osv.dev/vulnerability/BIT-KEYDB-2022-35977), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2022-35977](https://osv.dev/vulnerability/BIT-REDIS-2022-35977), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2022-35977](https://osv.dev/vulnerability/BIT-VALKEY-2022-35977), Apache-2.0, modified 2025-10-14

---

Page: https://cve.day/CVE-2022-35977 · Whole record: https://cve.day/CVE-2022-35977.json · Rebuilt by cve.day 2026-11-25T22:58:18.268Z
