CVE-2023-28425 Specially crafted MSETNX command can lead to denial-of-service

Medium 5.5 Published Updated

Authenticated users can crash the Redis server by sending a specially crafted MSETNX command, causing a denial of service.

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-2023-28425?

CVE-2023-28425 is a medium-severity denial of service vulnerability in redis, published on 20 Mar 2023. 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. Starting in version 7.0.8 and prior to version 7.0.10, authenticated users can use the MSETNX command to trigger a runtime assertion and termination of the Redis server process. The problem is fixed in Redis version 7.0.10.

Weakness: CWE-617, CWE-77

Which versions are affected by CVE-2023-28425?

3 open source packages ship an affected version, including redis, keydb and valkey. It affects 1 product.

PackageAffectedFixed in
redis BitnamiFrom 7.0.87.0.10
keydb BitnamiFrom 7.0.87.0.10
valkey BitnamiFrom 7.0.87.0.10

Products include Redis Redis.

How do I fix CVE-2023-28425?

Upgrade redis to 7.0.10 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-28425 being exploited?

There is no known exploitation of CVE-2023-28425 in the wild and no public exploit code.

Sources

Also known as AZL-25674, BIT-keydb-2023-28425, BIT-redis-2023-28425, BIT-valkey-2023-28425, DEBIAN-CVE-2023-28425, GHSA-mvmm-4vq6-vw8c.

Is CVE-2023-28425 in your software?

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

Check your SBOMs for free