{"schemaVersion":3,"id":"CVE-2021-32765","aliases":["MGASA-2021-0562","openSUSE-SU-2021:1536-1","openSUSE-SU-2021:1550-1","UBUNTU-CVE-2021-32765","DEBIAN-CVE-2021-32765","openSUSE-SU-2024:11561-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-10-04T00:00:00.000Z","modified":"2024-08-03T23:33:55.893Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02139,"percentile":0.81755,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02139},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02139,"percentile":0.81755}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02139,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02139,"percentile":0.81755}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"},{"id":"CWE-680","name":"Integer Overflow to Buffer Overflow","description":"The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.","type":"weakness","status":"Draft","abstraction":"Compound","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/680.html"}],"affected":[{"vendor":"debian","product":"hiredis","name":"hiredis","label":"hiredis","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/hiredis","purlType":"deb","versions":[{"text":"< 0.14.1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.14.1-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"hiredis","name":"hiredis","label":"hiredis","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/hiredis","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"mageia","product":"hiredis","name":"hiredis","label":"hiredis","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/hiredis","purlType":"rpm","versions":[{"text":"< 0.13.3-6.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.13.3-6.1.mga8","eol":null,"hubHref":null},{"vendor":"netapp","product":"management_services_for_element_software_and_netapp_hci","name":"management services for element software and netapp hci","label":"management_services_for_element_software_and_netapp_hci","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/management_services_for_element_software_and_netapp_hci"},{"vendor":"redis","product":"hiredis","name":"hiredis","label":"hiredis","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1","eol":null,"hubHref":"/vendor/redis/hiredis"},{"vendor":"opensuse","product":"hiredis&distro=openSUSE Leap 15.2","name":"hiredis","label":"hiredis&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/hiredis&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 0.13.3-bp153.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.13.3-bp153.2.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"hiredis&distro=openSUSE Leap 15.3","name":"hiredis","label":"hiredis&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/hiredis&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 0.13.3-bp153.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.13.3-bp153.2.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"hiredis&distro=openSUSE Tumbleweed","name":"hiredis","label":"hiredis&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/hiredis&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.0.2-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.2-1.1","eol":null,"hubHref":null},{"vendor":"suse","product":"hiredis&distro=SUSE Package Hub 15 SP2","name":"hiredis","label":"hiredis&distro=SUSE Package Hub 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/hiredis&distro=SUSE Package Hub 15 SP2","purlType":"rpm","versions":[{"text":"< 0.13.3-bp152.4.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.13.3-bp152.4.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"hiredis&distro=SUSE Package Hub 15 SP3","name":"hiredis","label":"hiredis&distro=SUSE Package Hub 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/hiredis&distro=SUSE Package Hub 15 SP3","purlType":"rpm","versions":[{"text":"< 0.13.3-bp153.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.13.3-bp153.2.3.1","eol":null,"hubHref":null}],"affectedCount":11,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2","label":"github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2","hostname":"github.com","tags":["Advisory","REPORT","Mitigation","Third Party Advisory"]},{"url":"https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e","label":"github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e","hostname":"github.com","tags":["Patch","Third Party Advisory"]},{"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","label":"wiki.sei.cmu.edu/confluence/…","hostname":"wiki.sei.cmu.edu","tags":["REPORT","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html","label":"lists.debian.org/debian-lts-announce/2021/10/msg00007.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20211104-0003/","label":"security.netapp.com/advisory/ntap-20211104-0003/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202210-32","label":"security.gentoo.org/glsa/202210-32","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0562.html","label":"advisories.mageia.org/MGASA-2021-0562.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29549","label":"bugs.mageia.org/show_bug.cgi?id=29549","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://www.debian.org/lts/security/2021/dla-2783","label":"www.debian.org/lts/security/2021/dla-2783","hostname":"www.debian.org","tags":["WEB"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/A2J7PHNSWD2ZHOSNIVUJTW2HJ34RJDBG/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1191331","label":"bugzilla.suse.com/1191331","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-32765","label":"www.suse.com/security/cve/CVE-2021-32765","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/4GSAQE3UZIYGFDEEFR46DV63XWSGJDN3/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-32765","label":"ubuntu.com/security/CVE-2021-32765","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32765","label":"www.cve.org/CVERecord?id=CVE-2021-32765","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32765","label":"security-tracker.debian.org/tracker/CVE-2021-32765","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-10-04T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:33:55.893Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T12:20:14.090Z","stale":false,"partial":false}}