CVE-2021-32765
Summary
| CVE | CVE-2021-32765 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-10-04 21:15:00 UTC |
| Updated | 2022-12-07 01:52:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| 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 |
No vendor comments have been submitted for this CVE.
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)