Advisory

DEBIAN-CVE-2021-32765

Also known as: CVE-2021-32765

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-10-04 21:15 UTC
Modified
2026-10-23 18:03 UTC

Affected packages and fixes

hiredis

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 0.14.1-2 (ecosystem)

Fixed versions

0.14.1-2

Fix

  • Fixed version 0.14.1-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

hiredis

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 0.14.1-2 (ecosystem)

Fixed versions

0.14.1-2

Fix

  • Fixed version 0.14.1-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

hiredis

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 0.14.1-2 (ecosystem)

Fixed versions

0.14.1-2

Fix

  • Fixed version 0.14.1-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences