# CVE-2021-32762: Integer overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platforms

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-10-04 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-32762, UBUNTU-CVE-2021-32762, DEBIAN-CVE-2021-32762
- Record: https://cvemate.com/vulnerability/CVE-2021-32762 · JSON: https://cvemate.com/vulnerability/CVE-2021-32762/json

## Description

```text
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.
```

## Signals

- CVSS: 9 high (v2.0, NVD) AV:N/AC:L/Au:S/C:C/I:C/A:C
- EPSS: 2.579%, percentile 85.73%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine redis (Alpine Linux): ≥ 5.0.0, \< 6.0.16-r0 \| ≥ 5.0.0, \< 6.2.6-r0 \| ≥ 5.0.0, \< 5.0.14-r0 \| ≥ 6.0.0, \< 6.0.16-r0 \| ≥ 6.2.0, \< 6.2.6-r0
- debian redis (Debian): \< 5:6.0.16-1
- ubuntu hiredis (Ubuntu): All versions (No fix recorded)
- ubuntu webdis (Ubuntu): All versions (No fix recorded)
- debian debian\_linux: 10.0 \| 11.0
- fedoraproject fedora: 33 \| 34 \| 35
- netapp management\_services\_for\_element\_software: na
- netapp management\_services\_for\_netapp\_hci: na
- oracle communications\_operations\_monitor: 4.3 \| 4.4 \| 5.0
- redis redis: \< 5.0.14 \| ≥ 5.0.0, \< 5.0.14 \| ≥ 6.0.0, \< 6.0.16 \| ≥ 6.2.0, \< 6.2.6

## References

- <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://security.alpinelinux.org/vuln/CVE-2021-32762>
- <https://ubuntu.com/security/CVE-2021-32762>
- <https://www.cve.org/CVERecord?id=CVE-2021-32762>
- <https://security-tracker.debian.org/tracker/CVE-2021-32762>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32762>

---

Data as of 2026-12-05T05:11:06.945Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
