CVE-2021-32762
CVE-2021-32762 · Integer overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platforms
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.5 · High · EPSS 2.6% · Fix available
- Published
- Updated
Affected products and versions
redis
- Versions
- < 5.0.14: Affected
- >= 6.0.0, < 6.0.16: Affected
- >= 6.2.0, < 6.2.6: Affected
No fix published
redis Debian:12
- Affected ranges
- ECOSYSTEM: < 5:6.0.16-1
Update to 5:6.0.16-1
redis Debian:13
- Affected ranges
- ECOSYSTEM: < 5:6.0.16-1
Update to 5:6.0.16-1
redis Debian:14
- Affected ranges
- ECOSYSTEM: < 5:6.0.16-1
Update to 5:6.0.16-1
hiredis Ubuntu:16.04:LTS
- Versions
- 0.13.1-2
- 0.13.3-1
- 0.13.3-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
webdis Ubuntu:16.04:LTS
- Versions
- 0.1.1-2.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/redis/redis/security/advisories/GHSA-833w-8v3m-8wwr
- https://github.com/redis/redis/commit/0215324a66af949be39b34be2d55143232c1cb71
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VL5KXFN3ATM7IIM7Q4O4PWTSRGZ5744Z/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HTYQ5ZF37HNGTZWVNJD3VXP7I6MEEF42/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WR5WKJWXD4D6S3DJCZ56V74ESLTDQRAB/
- https://www.debian.org/security/2021/dsa-5001
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20211104-0003/
- https://security.gentoo.org/glsa/202209-17
- https://nvd.nist.gov/vuln/detail/CVE-2021-32762