{"api_version":"1","generated_at":"2026-04-22T21:38:28+00:00","cve":"CVE-2021-32765","urls":{"html":"https://cve.report/CVE-2021-32765","api":"https://cve.report/api/cve/CVE-2021-32765.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32765","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32765"},"summary":{"title":"CVE-2021-32765","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-10-04 21:15:00","updated_at":"2022-12-07 01:52:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2","name":"https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2","refsource":"CONFIRM","tags":[],"title":"Integer Overflow to Buffer Overflow in hiredis · Advisory · redis/hiredis · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html","name":"[debian-lts-announce] 20211012 [SECURITY] [DLA 2783-1] hiredis security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2783-1] hiredis security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e","name":"https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e","refsource":"MISC","tags":[],"title":"Fix for integer/buffer overflow CVE-2021-32765 · redis/hiredis@76a7b10 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20211104-0003/","name":"https://security.netapp.com/advisory/ntap-20211104-0003/","refsource":"CONFIRM","tags":[],"title":"October 2021 Redis Vulnerabilities in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap","name":"https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap","refsource":"MISC","tags":[],"title":"MEM07-C. Ensure that the arguments to calloc(), when multiplied, do not wrap - SEI CERT C Coding Standard - Confluence","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202210-32","name":"GLSA-202210-32","refsource":"GENTOO","tags":[],"title":"hiredis, hiredis-py: Multiple Vulnerabilities (GLSA 202210-32) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32765","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32765","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32765","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"32765","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"netapp","cpe5":"management_services_for_element_software_and_netapp_hci","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"32765","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redis","cpe5":"hiredis","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32765","qid":"178832","title":"Debian Security Update for hiredis (DLA 2783-1)"},{"cve":"CVE-2021-32765","qid":"183894","title":"Debian Security Update for hiredis (CVE-2021-32765)"},{"cve":"CVE-2021-32765","qid":"282306","title":"Fedora Security Update for hiredis (FEDORA-2022-ec83686a30)"},{"cve":"CVE-2021-32765","qid":"356261","title":"Amazon Linux Security Advisory for hiredis : ALASREDIS6-2023-004"},{"cve":"CVE-2021-32765","qid":"690856","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for hiredis (2220827b-c732-11ec-b272-901b0e934d69)"},{"cve":"CVE-2021-32765","qid":"710650","title":"Gentoo Linux hiredis, hiredis-py Multiple Vulnerabilities (GLSA 202210-32)"},{"cve":"CVE-2021-32765","qid":"751463","title":"OpenSUSE Security Update for hiredis (openSUSE-SU-2021:1536-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32765","STATE":"PUBLIC","TITLE":"Integer Overflow to Buffer Overflow in Hiredis"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"hiredis","version":{"version_data":[{"version_value":"< 1.0.1"}]}}]},"vendor_name":"redis"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-190: Integer Overflow or Wraparound"}]},{"description":[{"lang":"eng","value":"CWE-680: Integer Overflow to Buffer Overflow"}]}]},"references":{"reference_data":[{"name":"https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2","refsource":"CONFIRM","url":"https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2"},{"name":"https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e","refsource":"MISC","url":"https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e"},{"name":"https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap","refsource":"MISC","url":"https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+arguments+to+calloc%28%29%2C+when+multiplied%2C+do+not+wrap"},{"refsource":"MLIST","name":"[debian-lts-announce] 20211012 [SECURITY] [DLA 2783-1] hiredis security update","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20211104-0003/","url":"https://security.netapp.com/advisory/ntap-20211104-0003/"},{"refsource":"GENTOO","name":"GLSA-202210-32","url":"https://security.gentoo.org/glsa/202210-32"}]},"source":{"advisory":"GHSA-hfm9-39pp-55p2","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-10-04 21:15:00","lastModifiedDate":"2022-12-07 01:52:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:redis:hiredis:*:*:*:*:*:*:*:*","versionEndExcluding":"1.0.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:netapp:management_services_for_element_software_and_netapp_hci:-:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32765","Ordinal":"208153","Title":"CVE-2021-32765","CVE":"CVE-2021-32765","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32765","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32765","Ordinal":"2","NoteData":"2021-10-04","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32765","Ordinal":"3","NoteData":"2021-11-04","Type":"Other","Title":"Modified"}]}}}