PT-2021-19914 · Hiredis+4 · Hiredis+4

Published

2021-10-04

·

Updated

2024-06-15

·

CVE-2021-32765

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Hiredis (affected versions not specified)
Description The issue arises from an integer overflow when Hiredis is provided with maliciously crafted or corrupted RESP mult-bulk protocol data. Specifically, when parsing multi-bulk (array-like) replies, Hiredis fails to check if count * sizeof(redisReply*) can be represented in SIZE MAX, potentially leading to a short allocation and subsequent buffer overflow due to the calloc() call not making this check.
Recommendations For all affected versions, users who are unable to update may set the maxelements context option to a value small enough that no overflow is possible. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Integer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2022-1589
ALT-PU-2022-1669
BDU:2025-04141
CVE-2021-32765
DLA-2783-1
GHSA-HFM9-39PP-55P2
MGASA-2021-0562
OESA-2021-1390
OPENSUSE-SU-2021:1536-1
OPENSUSE-SU-2021:1550-1
OPENSUSE-SU-2021_1536-1
OPENSUSE-SU-2024:11561-1
ROSA-SA-2024-2336
ROSA-SA-2024-2337

Affected Products

Alt Linux
Astra Linux
Debian
Hiredis
Suse