{"id":"CVE-2022-35951","summary":"Redis subject to Integer Overflow leading to Remote Code Execution via Heap Overflow","details":"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.","aliases":["BIT-keydb-2022-35951","BIT-redis-2022-35951","BIT-valkey-2022-35951","GHSA-5gc4-76rx-22c9"],"modified":"2026-03-14T11:49:46.455422Z","published":"2022-09-23T00:00:00Z","related":["openSUSE-SU-2024:12361-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35951.json","cwe_ids":["CWE-190"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35951.json"},{"type":"ADVISORY","url":"https://github.com/redis/redis/security/advisories/GHSA-5gc4-76rx-22c9"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7INCOOFPPEAKNDBZU3TIZJPYXBULI2C/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35951"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-17"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20221020-0005/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/redis/redis","events":[{"introduced":"d375595d5e3ae2e5c29e6c00a2dc3d60578fd9fc"},{"fixed":"1571907ea02020a829fca63806780c6f3ecf65a0"}]}],"versions":["7.0.0","7.0.1","7.0.2","7.0.3","7.0.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35951.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}