CVE-2021-3470 Memory corruption in redis

Medium 5.3 Published Updated

Heap overflow in Redis when using non-standard allocators allows out-of-bounds writes, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3470?

CVE-2021-3470 is a medium-severity memory corruption vulnerability in redis, published on 31 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A heap overflow issue was found in Redis in versions before 5.0.10, before 6.0.9 and before 6.2.0 when using a heap allocator other than jemalloc or glibc's malloc, leading to potential out of bound write or process crash. Effectively this flaw does not affect the vast majority of users, who use jemalloc or glibc malloc.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-3470?

It affects 1 product.

Products include Redislabs Redis.

How do I fix CVE-2021-3470?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-3470 being exploited?

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

Sources

Also known as ALPINE-CVE-2021-3470, AZL-6852, CLEANSTART-2026-BW73910, DEBIAN-CVE-2021-3470, GHSA-mqmr-8cxh-pqf6, OESA-2021-1172 and 1 more.

Is CVE-2021-3470 in your software?

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

Check your SBOMs for free