2021-05-12 22:00:55 +00:00
{
"CVE_data_meta" : {
2021-10-04 20:43:03 +00:00
"ASSIGNER" : "security-advisories@github.com" ,
2021-05-12 22:00:55 +00:00
"ID" : "CVE-2021-32765" ,
2021-10-04 20:43:03 +00:00
"STATE" : "PUBLIC" ,
"TITLE" : "Integer Overflow to Buffer Overflow in Hiredis"
2021-05-12 22:00:55 +00:00
} ,
2021-10-04 20:43:03 +00:00
"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" ,
2021-05-12 22:00:55 +00:00
"description" : {
"description_data" : [
{
"lang" : "eng" ,
2021-10-04 21:01:02 +00:00
"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."
2021-10-04 20:43:03 +00:00
}
]
} ,
"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"
2021-10-12 13:00:55 +00:00
} ,
{
"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"
2021-11-17 15:47:33 -05:00
} ,
{
"refsource" : "CONFIRM" ,
"name" : "https://security.netapp.com/advisory/ntap-20211104-0003/" ,
"url" : "https://security.netapp.com/advisory/ntap-20211104-0003/"
2022-10-31 04:00:31 +00:00
} ,
{
"refsource" : "GENTOO" ,
"name" : "GLSA-202210-32" ,
"url" : "https://security.gentoo.org/glsa/202210-32"
2021-05-12 22:00:55 +00:00
}
]
2021-10-04 20:43:03 +00:00
} ,
"source" : {
"advisory" : "GHSA-hfm9-39pp-55p2" ,
"discovery" : "UNKNOWN"
2021-05-12 22:00:55 +00:00
}
}