# CVE-2022-35951: Redis subject to Integer Overflow leading to Remote Code Execution via Heap Overflow

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/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): 3.99%, higher than 90% of CVEs (2026-12-02)
- Published: 2022-09-23T00:00:00.000Z
- Modified: 2026-09-08T08:48:18.931Z
- Also known as: BIT-KEYDB-2022-35951, BIT-REDIS-2022-35951, BIT-VALKEY-2022-35951, GHSA-5gc4-76rx-22c9
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Redis is an in-memory database that persists on disk. Versions 7.0.0 and above, prior to 7.0.5 are vulnerable to an Integer Overflow. Executing an `XAUTOCLAIM` command on a stream key in a specific state, with a specially crafted `COUNT` argument may cause an integer overflow, a subsequent heap overflow, and potentially lead to remote code execution. This has been patched in Redis version 7.0.5. No known workarounds exist.

(As written by CVE List.)

## Affected

- redis redis: >= 7.0.0, < 7.0.5; from 7.0.0 before 7.0.5
- fedoraproject fedora: 37
- keydb (Bitnami): from 7.0.0 before 7.0.5
- redis (Bitnami): from 7.0.0 before 7.0.5
- valkey (Bitnami): from 7.0.0 before 7.0.5

## Every score

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

## References

- <https://github.com/redis/redis/security/advisories/GHSA-5gc4-76rx-22c9> (advisory, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7INCOOFPPEAKNDBZU3TIZJPYXBULI2C/> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202209-17> (advisory, third-party-advisory, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221020-0005/> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-35951> (web)

## Sources

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

---

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