8.8
HIGH
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 :

Dec. 7, 2022, 1:52 a.m.

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.

ID Vendor Product Action
1 Debian debian_linux
1 Netapp management_services_for_element_software_and_netapp_hci
1 Redis hiredis
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.

URL Resource
https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e Patch Third Party Advisory
https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2 Mitigation Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html Mailing List Third Party Advisory
https://security.gentoo.org/glsa/202210-32 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211104-0003/ Third Party Advisory
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

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

Updated: 7 months, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : March 24, 2024, 12:05 a.m. This repo has been linked 1 different CVEs too.

None

Makefile C C++ CMake Shell

Updated: 2 months, 3 weeks ago
0 stars 1 fork 1 watcher
Born at : Oct. 8, 2022, 7:56 a.m. This repo has been linked 1 different CVEs too.

None

CMake C C++ Makefile HiveQL Shell

Updated: 2 years, 3 months ago
0 stars 0 fork 0 watcher
Born at : July 22, 2022, 1:35 p.m. This repo has been linked 1 different CVEs too.

Minimalistic C client for Redis >= 1.2

C Makefile C++ CMake Shell

Updated: 2 months, 2 weeks ago
6205 stars 1736 fork 1736 watcher
Born at : May 18, 2010, 3:10 p.m. This repo has been linked 1 different CVEs too.

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 [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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

3.61 }} 1.03%

score

0.91849

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability