QID 356261

Date Published: 2023-09-28

QID 356261: Amazon Linux Security Advisory for hiredis : ALASREDIS6-2023-004

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. (
( CVE-2021-32765)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as High - 6.5 severity.
  • Solution
    Please refer to Amazon advisory: ALASREDIS6-2023-004 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356261

    Software Advisories
    Advisory ID Software Component Link
    ALASREDIS6-2023-004 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALASREDIS6-2023-004.html