CVE-2021-32765

Summary

CVECVE-2021-32765
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-10-04 21:15:00 UTC
Updated2022-12-07 01:52:00 UTC
DescriptionHiredis 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.

Risk And Classification

Problem Types: CWE-190

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Application Netapp Management Services For Element Software And Netapp Hci - All All All
Application Redis Hiredis All All All All

References

ReferenceSourceLinkTags
Integer Overflow to Buffer Overflow in hiredis · Advisory · redis/hiredis · GitHub CONFIRM github.com
[SECURITY] [DLA 2783-1] hiredis security update MLIST lists.debian.org
Fix for integer/buffer overflow CVE-2021-32765 · redis/hiredis@76a7b10 · GitHub MISC github.com
October 2021 Redis Vulnerabilities in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
MEM07-C. Ensure that the arguments to calloc(), when multiplied, do not wrap - SEI CERT C Coding Standard - Confluence MISC wiki.sei.cmu.edu
hiredis, hiredis-py: Multiple Vulnerabilities (GLSA 202210-32) — Gentoo security GENTOO security.gentoo.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 178832 Debian Security Update for hiredis (DLA 2783-1)
  • 183894 Debian Security Update for hiredis (CVE-2021-32765)
  • 282306 Fedora Security Update for hiredis (FEDORA-2022-ec83686a30)
  • 356261 Amazon Linux Security Advisory for hiredis : ALASREDIS6-2023-004
  • 690856 Free Berkeley Software Distribution (FreeBSD) Security Update for hiredis (2220827b-c732-11ec-b272-901b0e934d69)
  • 710650 Gentoo Linux hiredis, hiredis-py Multiple Vulnerabilities (GLSA 202210-32)
  • 751463 OpenSUSE Security Update for hiredis (openSUSE-SU-2021:1536-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report