CVE-2022-35951 json
Redis subject to Integer Overflow leading to Remote Code Execution via Heap Overflow
published 2022-09-22 4 y ago modified 2026-09-08 2 mo ago also BIT-keydb-2022-35951 , BIT-redis-2022-35951 , BIT-valkey-2022-35951 , EUVD-2022-38797 , GHSA-5gc4-76rx-22c9
- cvss
- 7.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.9%
- EPSS 3.9% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami keydb 7.0.5
- bitnami redis 7.0.5
- bitnami valkey 7.0.5
- redis redis 7.0.5
- redis Debian 14, Debian 13, Debian 12 5:7.0.5-1
debian advisories DEBIAN-CVE-2022-35951
- redis openSUSE Tumbleweed 7.0.5-1.1
opensuse advisories openSUSE-SU-2024:12361-1
- redis Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 7.0.5-r0
alpine advisories ALPINE-CVE-2022-35951
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-35951 updated cvss 9.8
redis: heap overflow in XAUTOCLAIM command's COUNT argument
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-api-rhel8 Red Hat Ansible Automation Platform 1.2 ansible-tower Red Hat Enterprise Linux 8 redis Red Hat Enterprise Linux 9 redis Red Hat Fuse 7 redis Red Hat OpenStack Platform 13 (Queens) redisnot affected: vulnerable code not present
+2 more productsfewer
Red Hat Quay 3 quay/quay-rhel8 Red Hat Software Collections rh-redis6-redis
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
3.91% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | keydb | >=7.0.0, <7.0.5 |
7.0.5 |
| bitnami | redis | >=7.0.0, <7.0.5 |
7.0.5 |
| bitnami | valkey | >=7.0.0, <7.0.5 |
7.0.5 |
Affected products
- redis redis
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
- Technology feeds
References
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/A7INCOOFPPEAKNDBZU3TIZJPYXBULI2C/
vendor-advisory, web
-
security.gentoo.org
/glsa/202209-17
vendor-advisory, third-party-advisory, advisory, web
-
github.com
/redis/redis/security/advisories/GHSA-5gc4-76rx-22c9
third-party-advisory, advisory, web
-
security.netapp.com
/advisory/ntap-20221020-0005/
third-party-advisory, advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2022-35951
web
Sources
- CVE List CVE-2022-35951
- NVD CVE-2022-35951
- OSV BIT-keydb-2022-35951
- OSV BIT-redis-2022-35951
- OSV BIT-valkey-2022-35951
- Maintainer advisory GHSA-5gc4-76rx-22c9
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of redis/redis published their own advisory on GitHub. Reviewed sources take precedence over it.