CVE-2021-32765
Hiredis Integer Overflow Buffer Overflow Vulnerability
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.
INFO
Published Date :
Oct. 4, 2021, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 6:07 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
Public PoC/Exploit Available at Github
CVE-2021-32765 has a 4 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2021-32765
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-32765
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
CMake Makefile C C++ Zig Shell
None
Makefile C C++ CMake Shell
None
CMake C C++ Makefile HiveQL Shell
Minimalistic C client for Redis >= 1.2
C Makefile C++ CMake Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-32765
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-32765
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e Added Reference https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2 Added Reference https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html Added Reference https://security.gentoo.org/glsa/202210-32 Added Reference https://security.netapp.com/advisory/ntap-20211104-0003/ Added Reference https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Dec. 07, 2022
Action Type Old Value New Value Changed Reference Type https://security.gentoo.org/glsa/202210-32 No Types Assigned https://security.gentoo.org/glsa/202210-32 Third Party Advisory -
CVE Modified by [email protected]
Oct. 31, 2022
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/202210-32 [No Types Assigned] -
Modified Analysis by [email protected]
Nov. 28, 2021
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html No Types Assigned https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html Mailing List, Third Party Advisory Changed Reference Type https://security.netapp.com/advisory/ntap-20211104-0003/ No Types Assigned https://security.netapp.com/advisory/ntap-20211104-0003/ Third Party Advisory Added CWE NIST CWE-190 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:a:netapp:management_services_for_element_software_and_netapp_hci:-:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Nov. 17, 2021
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20211104-0003/ [No Types Assigned] -
CVE Modified by [email protected]
Nov. 10, 2021
Action Type Old Value New Value Removed Reference https://security.netapp.com/advisory/ntap-20211104-0003/ [No Types Assigned] -
CVE Modified by [email protected]
Nov. 04, 2021
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20211104-0003/ [No Types Assigned] -
CVE Modified by [email protected]
Oct. 12, 2021
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html [No Types Assigned] -
Initial Analysis by [email protected]
Oct. 07, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:P/I:P/A:P) Changed Reference Type https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e No Types Assigned https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e Patch, Third Party Advisory Changed Reference Type https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2 No Types Assigned https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2 Mitigation, Third Party Advisory Changed Reference Type https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap No Types Assigned https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:redis:hiredis:*:*:*:*:*:*:*:* versions up to (excluding) 1.0.1
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-32765
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-32765
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.29 }} -3.32%
score
0.68741
percentile