CVE-2021-32765
published high CVSS 3.1 · 8.8Integer Overflow to Buffer Overflow in Hiredis
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| redis | — | hiredis< 1.0.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2REDIS6-2023-004 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredisaarch64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| Amazon Linux | AL2 | hiredisaarch64 | Listed in advisory | Not stated | ALAS2REDIS6-2023-004 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredisi586 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredisppc64le | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hirediss390x | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredisx86_64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
Show 39 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredisaarch64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredisi586 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredisppc64le | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hirediss390x | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredisx86_64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hiredisaarch64 | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hiredisppc64le | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hirediss390x | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hiredisx86_64 | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredis-develaarch64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredis-develi586 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredis-develppc64le | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredis-devels390x | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | hiredis-develx86_64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libhiredis0_13aarch64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libhiredis0_13i586 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libhiredis0_13ppc64le | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libhiredis0_13s390x | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libhiredis0_13x86_64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredis-develaarch64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredis-develi586 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredis-develppc64le | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredis-devels390x | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | hiredis-develx86_64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libhiredis0_13aarch64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libhiredis0_13i586 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libhiredis0_13ppc64le | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libhiredis0_13s390x | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libhiredis0_13x86_64 | Advisory build | 0.13.3-bp153.2.3.1 | OPENSUSE-SU-2021:1536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hiredis-develaarch64 | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hiredis-develppc64le | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hiredis-devels390x | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hiredis-develx86_64 | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhiredis1_0_0aarch64 | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhiredis1_0_0ppc64le | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhiredis1_0_0s390x | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhiredis1_0_0x86_64 | Advisory build | 1.0.2-1.1 | OPENSUSE-SU-2024:11561-1 |
| Amazon Linux | AL2 | hiredissrc | Listed in advisory | Not stated | ALAS2REDIS6-2023-004 |
| Amazon Linux | AL2 | hiredisx86_64 | Listed in advisory | Not stated | ALAS2REDIS6-2023-004 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| redis | hiredis | < 1.0.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-190 CWE-190: Integer Overflow or Wraparound
- CWE-680 CWE-680: Integer Overflow to Buffer Overflow
References
6- https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e
- https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2
- [debian-lts-announce] 20211012 [SECURITY] [DLA 2783-1] hiredis security update https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html
- GLSA-202210-32 https://security.gentoo.org/glsa/202210-32
- https://security.netapp.com/advisory/ntap-20211104-0003/
- https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap
Provider assertions
2GitHub_M · cna
Integer Overflow to Buffer Overflow in Hiredis
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- beacdf978f26b8a30bd5d62ac809a1b249b75f29f676ed7d6165bd82fb78aa85
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record