UBUNTU-CVE-2021-32765

Source
https://ubuntu.com/security/CVE-2021-32765
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32765.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-32765
Related
Published
2021-10-04T21:15:00Z
Modified
2024-10-15T14:08:10Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / hiredis

Package

Name
hiredis
Purl
pkg:deb/ubuntu/hiredis?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.13.1-2
0.13.3-1
0.13.3-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}