
CVE catalog
CVE-2021-32765
hiredis: CVE-2021-32765
- Severity
- High · CVSS 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.14% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | hiredis | sid | 1.2.0-6 | fixed |
| Debian | hiredis | forky | 1.2.0-6 | fixed |
| Debian | hiredis | trixie | 1.2.0-6 | fixed |
| Debian | hiredis | bookworm | 0.14.1-3 | fixed |
| Ubuntu | hiredis | 16.04 | 0.13.1-2 | vulnerable |
| Ubuntu | hiredis | 16.04 | 0.13.3-1 | vulnerable |
| Ubuntu | hiredis | 16.04 | 0.13.3-2 | vulnerable |
| Suse | hiredis | package hub 15 sp3 | 0.13.3-bp153.2.3.1 | fixed |
| Opensuse | hiredis | leap 15.2 | 0.13.3-bp153.2.3.1 | fixed |
| Opensuse | hiredis | leap 15.3 | 0.13.3-bp153.2.3.1 | fixed |
| Suse | hiredis | package hub 15 sp2 | 0.13.3-bp152.4.3.1 | fixed |
| Opensuse | hiredis | tumbleweed | 1.0.2-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | hiredis | source | sid | 0.14.1-2 | unimportant | Not reported | Not reported |
| Debian | hiredis | source | forky | 0.14.1-2 | unimportant | Not reported | Not reported |
| Debian | hiredis | source | trixie | 0.14.1-2 | unimportant | Not reported | Not reported |
| Debian | hiredis | source | bookworm | 0.14.1-2 | unimportant | Not reported | Not reported |
| Suse | hiredis | rpm | package hub 15 sp3 | 0.13.3-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1536-1 | Not reported |
| Opensuse | hiredis | rpm | leap 15.2 | 0.13.3-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1536-1 | Not reported |
| Opensuse | hiredis | rpm | leap 15.3 | 0.13.3-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1536-1 | Not reported |
| Suse | hiredis | rpm | package hub 15 sp2 | 0.13.3-bp152.4.3.1 | Not reported | OPENSUSE-SU-2021:1550-1 | Not reported |
| Opensuse | hiredis | rpm | tumbleweed | 1.0.2-1.1 | Not reported | OPENSUSE-SU-2024:11561-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [hiredis-devel]Unknown
Source package: [hiredis]
Details (1)
1.3.0-1.5· x86_64 · tumbleweedUnknown · Fixed:
1.0.2-1.1Version impact unknown
dsa · hiredis · opensuse · tumbleweed
- [libhiredis1_3_0]Unknown
Source package: [hiredis]
Details (1)
1.3.0-1.5· x86_64 · tumbleweedUnknown · Fixed:
1.0.2-1.1Version impact unknown
dsa · hiredis · opensuse · tumbleweed
- [hiredis]Fixed
Source package: [hiredis]
Details (1)
1.3.0-1.5· x86_64 · tumbleweedFixed · Fixed:
1.0.2-1.1dsa · hiredis · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [libhiredis0.14]Fixed
Source package: [hiredis]
Details (2)
0.14.1-3· amd64 · bookwormFixed · Fixed:
0.14.1-2dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12
0.14.1-3· arm64 · bookwormFixed · Fixed:
0.14.1-2dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12
- [libhiredis-dev]Fixed
Source package: [hiredis]
Details (2)
0.14.1-3· amd64 · bookwormFixed · Fixed:
0.14.1-2dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12
0.14.1-3· arm64 · bookwormFixed · Fixed:
0.14.1-2dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12
[Debian 13 (Trixie)]
- [libhiredis1.1.0]Fixed
Source package: [hiredis]
Details (2)
1.2.0-6+b3· amd64 · trixieFixed · Fixed:
0.14.1-2dsa · hiredis · debian · 13
1.2.0-6+b3· arm64 · trixieFixed · Fixed:
0.14.1-2dsa · hiredis · debian · 13
- [libhiredis-dev]Fixed
Source package: [hiredis]
Details (2)
1.2.0-6+b3· amd64 · trixieFixed · Fixed:
0.14.1-2dsa · hiredis · debian · 13
1.2.0-6+b3· arm64 · trixieFixed · Fixed:
0.14.1-2dsa · hiredis · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2021_1536-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-32765]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-32765]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:1536-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:1550-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:11561-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-32765]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-32765.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]