CVE-2021-32765
mediumpriority · track · 36EPSS 0.021 · 82 %ileEURUUSEPSS · scored 2026-10-28
Hiredis is a minimalistic C client library for the Redis database. In affected versions Hiredis is vulnurable to integer overflow if provided maliciously crafted or corrupted `RESP` `mult-bulk` protocol data. When parsing `multi-bulk` (array-like) replies, hiredis fails to check if `count * sizeof(redisReply*)` can be represented in `SIZE_MAX`. If it can not, and the `calloc()` call doesn't itself make this check, it would result in a short allocation and subsequent buffer overflow. Users of hiredis who are unable to update may set the [maxelements](https://github.com/redis/hiredis#reader-max-array-elements) context option to a value small enough that no overflow is possible.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (9)
Products and version ranges known to be affected.
- netapp management services for element software and netapp hciall versionsnvdUScpe:2.3:a:netapp:management_services_for_element_software_and_netapp_hci:*:*:*:*:*:*:*:*
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (22)
External citations — patches, advisories, analysis.
- https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1ecnnvd
- https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2cnnvd
- https://lists.debian.org/debian-lts-announce/2021/10/msg00007.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-32765cnnvd
- https://packetstormsecurity.com/files/169610/Gentoo-Linux-Security-Advisory-202210-32.htmlcnnvd
- https://security.gentoo.org/glsa/202210-32cnnvd
- https://security.netapp.com/advisory/ntap-20211104-0003/cnnvd
- https://vigilance.fr/vulnerability/Hiredis-integer-overflow-via-RESP-Mult-bulk-Protocol-Data-36633cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan