CVE catalog

CVE-2021-32765

hiredis: CVE-2021-32765

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
2.14% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianhiredissid1.2.0-6fixed
Debianhiredisforky1.2.0-6fixed
Debianhiredistrixie1.2.0-6fixed
Debianhiredisbookworm0.14.1-3fixed
Ubuntuhiredis16.040.13.1-2vulnerable
Ubuntuhiredis16.040.13.3-1vulnerable
Ubuntuhiredis16.040.13.3-2vulnerable
Susehiredispackage hub 15 sp30.13.3-bp153.2.3.1fixed
Opensusehiredisleap 15.20.13.3-bp153.2.3.1fixed
Opensusehiredisleap 15.30.13.3-bp153.2.3.1fixed
Susehiredispackage hub 15 sp20.13.3-bp152.4.3.1fixed
Opensusehiredistumbleweed1.0.2-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianhiredissourcesid0.14.1-2unimportantNot reportedNot reported
Debianhiredissourceforky0.14.1-2unimportantNot reportedNot reported
Debianhiredissourcetrixie0.14.1-2unimportantNot reportedNot reported
Debianhiredissourcebookworm0.14.1-2unimportantNot reportedNot reported
Susehiredisrpmpackage hub 15 sp30.13.3-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1536-1Not reported
Opensusehiredisrpmleap 15.20.13.3-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1536-1Not reported
Opensusehiredisrpmleap 15.30.13.3-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1536-1Not reported
Susehiredisrpmpackage hub 15 sp20.13.3-bp152.4.3.1Not reportedOPENSUSE-SU-2021:1550-1Not reported
Opensusehiredisrpmtumbleweed1.0.2-1.1Not reportedOPENSUSE-SU-2024:11561-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • [hiredis-devel]Unknown

    Source package: [hiredis]

    Details (1)
    • 1.3.0-1.5 · x86_64 · tumbleweed

      Unknown · Fixed: 1.0.2-1.1

      Version impact unknown

      dsa · hiredis · opensuse · tumbleweed

  • Source package: [hiredis]

    Details (1)
    • 1.3.0-1.5 · x86_64 · tumbleweed

      Unknown · Fixed: 1.0.2-1.1

      Version impact unknown

      dsa · hiredis · opensuse · tumbleweed

  • [hiredis]Fixed

    Source package: [hiredis]

    Details (1)
    • 1.3.0-1.5 · x86_64 · tumbleweed

      Fixed · Fixed: 1.0.2-1.1

      dsa · hiredis · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [hiredis]

    Details (2)
    • 0.14.1-3 · amd64 · bookworm

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12

    • 0.14.1-3 · arm64 · bookworm

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12

  • Source package: [hiredis]

    Details (2)
    • 0.14.1-3 · amd64 · bookworm

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12

    • 0.14.1-3 · arm64 · bookworm

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · bookworm; dsa · hiredis · debian · 12

[Debian 13 (Trixie)]

  • Source package: [hiredis]

    Details (2)
    • 1.2.0-6+b3 · amd64 · trixie

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · 13

    • 1.2.0-6+b3 · arm64 · trixie

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · 13

  • Source package: [hiredis]

    Details (2)
    • 1.2.0-6+b3 · amd64 · trixie

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · 13

    • 1.2.0-6+b3 · arm64 · trixie

      Fixed · Fixed: 0.14.1-2

      dsa · hiredis · debian · 13

Observed:

References