CVE-2021-32762: Integer overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platforms
Redis is an open source, in-memory database that persists on disk. The redis-cli command line tool and redis-sentinel service may be vulnerable to integer overflow when parsing specially crafted large multi-bulk network replies. This is a result of a vulnerability in the underlying hiredis library which does not perform an overflow check before calling the calloc() heap allocation function. This issue only impacts systems with heap allocators that do not perform their own overflow checks. Most modern systems do and are therefore not likely to be affected. Furthermore, by default redis-sentinel uses the jemalloc allocator which is also not vulnerable. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2021-32762?
CVE-2021-32762 is a vulnerability in Redis that allows for integer overflow when parsing specially crafted large multi-bulk network replies.
How severe is CVE-2021-32762?
CVE-2021-32762 has a severity rating of 8.8, which is considered critical.
Which software versions are affected by CVE-2021-32762?
Redis versions 5.0.0 to 5.0.14, 6.0.0 to 6.0.16, and 6.2.0 to 6.2.6 are affected by CVE-2021-32762.
How can I fix CVE-2021-32762?
To fix CVE-2021-32762, update Redis to version 5.0.14, 6.0.16, or 6.2.6.
Are there any references for CVE-2021-32762?
Yes, you can find references for CVE-2021-32762 at the following links: [GitHub Advisory](https://github.com/redis/redis/security/advisories/GHSA-833w-8v3m-8wwr) and [Debian Security Tracker](https://security-tracker.debian.org/tracker/CVE-2021-32762).