FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

hiredis -- integer/buffer overflow

Affected packages
hiredis < 1.0.1

Details

VuXML ID 2220827b-c732-11ec-b272-901b0e934d69
Discovery 2021-10-04
Entry 2022-04-29

hiredis maintainers report:

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.

References

CVE Name CVE-2021-32765
URL https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32765
URL https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2