Skip to content

CVE-2021-32765 Integer Overflow to Buffer Overflow in Hiredis

HighCVSS 8.8 EPSS 2.1%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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 context option to a value small enough that no overflow is possible.

Upgrade path

7 packages: 4 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
netapp management services for element software and netapp hci All versions No fix listed No fix yet
ubuntu/hiredis(Ubuntu Pro 16.04) = 0.13.1-2; = 0.13.3-1; = 0.13.3-2; = 0.13.3-2ubuntu0.1~esm1 +1 more No fix listed No fix yet
debian/hiredis(Debian 12) < 0.14.1-2 0.14.1-2 Fixed
debian/hiredis(Debian 13) < 0.14.1-2 0.14.1-2 Fixed
debian/hiredis(Debian 14) < 0.14.1-2 0.14.1-2 Fixed
redis hiredis < 1.0.1; = < 1.0.1 1.0.1 Fixed
debian linux = 9.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/hiredis(Debian:12) < 0.14.1-2 0.14.1-2
debian/hiredis(Debian:13) < 0.14.1-2 0.14.1-2
debian/hiredis(Debian:14) < 0.14.1-2 0.14.1-2
redis hiredis < 1.0.1 1.0.1
debian linux = 9.0 No fix listed
netapp management services for element software and netapp hci All versions No fix listed
redis hiredis = < 1.0.1 No fix listed
ubuntu/hiredis(Ubuntu:Pro:16.04) All versions No fix listed
ubuntu/hiredis(Ubuntu:Pro:16.04) = 0.13.1-2 No fix listed
ubuntu/hiredis(Ubuntu:Pro:16.04) = 0.13.3-1 No fix listed
ubuntu/hiredis(Ubuntu:Pro:16.04) = 0.13.3-2 No fix listed
ubuntu/hiredis(Ubuntu:Pro:16.04) = 0.13.3-2ubuntu0.1~esm1 No fix listed

References