PT-2021-19914 · Hiredis+4 · Hiredis+4
Published
2021-10-04
·
Updated
2024-06-15
·
CVE-2021-32765
CVSS v3.1
8.8
High
| Vector | AV: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 👾
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Debian
Hiredis
Suse