cve.bz

CVE-2021-32765 Year 2038 problem, Y2K38, Y2038, Epochalypse

8.8 highEPSS 2.1%Fix available

High (8.8). EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-680 Integer Overflow to Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32765 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32765?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32765?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32765 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:hiredisbefore 1.0.1
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14hiredis0.14.1-2DEBIAN-CVE-2021-32765
UbuntuPro:16.04:LTShiredisno fix listedUBUNTU-CVE-2021-32765
SUSEPackage Hub 15 SP2hiredis0.13.3-bp152.4.3.1openSUSE-SU-2021:1550-1
SUSEPackage Hub 15 SP3hiredis0.13.3-bp153.2.3.1openSUSE-SU-2021:1536-1
openSUSELeap 15.2, Leap 15.3hiredis0.13.3-bp153.2.3.1openSUSE-SU-2021:1536-1
openSUSETumbleweedhiredis1.0.2-1.1openSUSE-SU-2024:11561-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 1.2hiredisNot affected
Red Hat Ansible Tower 3hiredisNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32765.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-680 (11).

References

Check your stackJSON