CVE-2022-35951 Redis subject to Integer Overflow leading to Remote Code Execution via Heap Overflow
An integer overflow in Redis XAUTOCLAIM command allows remote attackers to execute arbitrary code via heap overflow.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-35951?
CVE-2022-35951 is a high-severity vulnerability in Fedoraproject Fedora, published on 23 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-190
Which versions are affected by CVE-2022-35951?
3 open source packages ship an affected version, including keydb, redis and valkey. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
keydb Bitnami | From 7.0.0 | 7.0.5 |
redis Bitnami | From 7.0.0 | 7.0.5 |
valkey Bitnami | From 7.0.0 | 7.0.5 |
Linux distribution packages (1)
redis openSUSE:Tumbleweed | All versions | 7.0.5-1.1 |
Products include Fedoraproject Fedora, Redis Redis.
How do I fix CVE-2022-35951?
Upgrade keydb to 7.0.5 or later.
Is CVE-2022-35951 being exploited?
There is no known exploitation of CVE-2022-35951 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALPINE-CVE-2022-35951, BIT-keydb-2022-35951, BIT-redis-2022-35951, BIT-valkey-2022-35951, CLEANSTART-2026-OG09584, DEBIAN-CVE-2022-35951 and 2 more.