CVE-2021-32765 in Debian Linux and 2 more products
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 ...
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 9.0 |
| Netapp | Management Services For Element Software And Netapp Hci | No version listed by the source |
| Redis | Hiredis | < 1.0.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-32765 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-074347-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-10-04 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-190: Integer Overflow or Wraparound
Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.
CWE-680: CWE-680
Related attack patterns (CAPEC)
CAPEC-8 Buffer Overflow in an API Call via CWE-680
CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-680
CAPEC-10 Buffer Overflow via Environment Variables via CWE-680
CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-680
CAPEC-24 Filter Failure through Buffer Overflow via CWE-680
Show all 11
CAPEC-45 Buffer Overflow via Symbolic Links via CWE-680
CAPEC-46 Overflow Variables and Tags via CWE-680
CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-680
CAPEC-67 String Format Overflow in syslog() via CWE-680
CAPEC-92 Forced Integer Overflow via CWE-190, CWE-680
CAPEC-100 Overflow Buffers via CWE-680
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Hiredis, a minimalistic C client library for Redis, is vulnerable to integer overflow when parsing maliciously crafted or corrupted RESP mult-bulk protocol data, leading to potential memory corruption and remote code execution.
An attacker can exploit this vulnerability by sending specially crafted RESP mult-bulk protocol data to a Redis server using Hiredis as the client library. This can cause an integer overflow during the parsing of the mult-bulk replies, potentially leading to memory corruption and remote code execution.
Questions
What is CVE-2021-32765?
Hiredis, a minimalistic C client library for Redis, is vulnerable to integer overflow when parsing maliciously crafted or corrupted RESP mult-bulk protocol data, leading to potential memory corruption and remote code execution.
What is the CVSS score for CVE-2021-32765?
CVE-2021-32765 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.1%.
Is CVE-2021-32765 actively exploited?
No confirmed active exploitation of CVE-2021-32765 as of 2026-09-25.
How do I remediate CVE-2021-32765?
Priority: IMMEDIATE.
What systems are affected by CVE-2021-32765?
CVE-2021-32765 affects Debian Debian Linux; Netapp Management Services For Element Software And Netapp Hci; Redis Hiredis.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.