CVE-2021-32765
CVSS V2 Medium 6.5
CVSS V3 High 8.8
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.
Overview
- CVE ID
- CVE-2021-32765
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-10-04T21:15:12
- Last Modified Date
- 2022-12-07T01:52:55
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:redis:hiredis:*:*:*:*:*:*:*:* | 1 | OR | 1.0.1 | |
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:management_services_for_element_software_and_netapp_hci:-:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:S/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- SINGLE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 6.5
- Severity
- MEDIUM
- Exploitability Score
- 8
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 8.8
- Base Severity
- HIGH
- Exploitability Score
- 2.8
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
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 | |
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 |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-32765 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32765 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:44:48 | Added to TrackCVE | |||
2022-12-05 11:47:11 | 2021-10-04T21:15Z | 2021-10-04T21:15:12 | CVE Published Date | updated |
2022-12-05 11:47:11 | 2022-10-31T04:15:15 | CVE Modified Date | updated | |
2022-12-05 11:47:11 | Undergoing Analysis | Vulnerability Status | updated | |
2022-12-05 11:47:15 | References | updated | ||
2022-12-07 02:12:40 | 2022-12-07T01:52:55 | CVE Modified Date | updated | |
2022-12-07 02:12:40 | Undergoing Analysis | Analyzed | Vulnerability Status | updated |