CVE-2021-32761 Integer overflow issues with *BIT commands on 32-bit systems

High 7.5 Published Updated

Integer overflow in Redis BIT commands on 32-bit systems allows heap corruption, information disclosure, or remote code execution if proto-max-bulk-len is increased.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-32761?

CVE-2021-32761 is a high-severity vulnerability in Debian Debian Linux, published on 21 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Redis is an in-memory database that persists on disk. A vulnerability involving out-of-bounds read and integer overflow to buffer overflow exists starting with version 2.2 and prior to versions 5.0.13, 6.0.15, and 6.2.5. On 32-bit systems, Redis `*BIT*` command are vulnerable to integer overflow that can potentially be exploited to corrupt the heap, leak arbitrary heap contents or trigger remote code execution. The vulnerability involves changing the default `proto-max-bulk-len` configuration parameter to a very large value and constructing specially crafted commands bit commands. This problem only affects Redis on 32-bit platforms, or compiled as a 32-bit binary. Redis versions 5.0.`3m 6.0.15, and 6.2.5 contain patches for this issue. An additional workaround to mitigate the problem without patching the `redis-server` executable is to prevent users from modifying the `proto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.

Weakness: CWE-190, CWE-680, CWE-125

Which versions are affected by CVE-2021-32761?

It affects 3 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Redislabs Redis.

How do I fix CVE-2021-32761?

Apply the vendor's patch.

Is CVE-2021-32761 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2021-32761, AZL-6850, CLEANSTART-2026-GZ27541, DEBIAN-CVE-2021-32761, DLA-2717-1, DLA-2717-2 and 2 more.

Is CVE-2021-32761 in your software?

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

Check your SBOMs for free