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

High 7.0 Published Updated

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.

PackageAffectedFixed in
keydb BitnamiFrom 7.0.07.0.5
redis BitnamiFrom 7.0.07.0.5
valkey BitnamiFrom 7.0.07.0.5
Linux distribution packages (1)
redis openSUSE:TumbleweedAll versions7.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.

All Fedoraproject Fedora vulnerabilities

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.

Is CVE-2022-35951 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free