CVE-2021-32765: debian debian_linux Integer Overflow or Wraparound
Vulnerability summary
CVE-2021-32765 is a high (CVSS 8.8) Integer Overflow or Wraparound vulnerability in debian debian_linux. EPSS estimates a 2.14% chance of exploitation in the next 30 days, higher than 81.7% of scored vulnerabilities.
Timeline
- 04-10-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.14%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
0.00 pp
From 2.14% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-680Integer Overflow to Buffer OverflowThe product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.
Affected systems
Opensuse3 products
- hiredis&distro=openSUSE Leap 15.2< 0.13.3-bp153.2.3.1
- hiredis&distro=openSUSE Leap 15.3< 0.13.3-bp153.2.3.1
- hiredis&distro=openSUSE Tumbleweed< 1.0.2-1.1
Debian2 products
- hiredis< 0.14.1-2
- debian_linuxEOL9.0
Suse2 products
- hiredis&distro=SUSE Package Hub 15 SP2< 0.13.3-bp152.4.3.1
- hiredis&distro=SUSE Package Hub 15 SP3< 0.13.3-bp153.2.3.1
Mageia1 product
- hiredis< 0.13.3-6.1.mga8
Netapp1 product
Redis1 product
- hiredis< 1.0.1
Ubuntu1 product
- hiredisAll versions (No fix recorded)
7 vendors · 11 products
References
16 links- github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2AdvisoryREPORTMitigationThird Party Advisory
- security.netapp.com/advisory/ntap-20211104-0003/Third Party Advisory
- lists.opensuse.org/archives/…Advisory
Show all 16 references
- lists.opensuse.org/archives/…Advisory