Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2879.json",
"cna_assigner": "Go",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "1.18.7"
},
{
"introduced": "1.19.0-0"
},
{
"fixed": "1.19.2"
}
],
"source": "AFFECTED_FIELD"
}
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.18.7"
},
{
"introduced": "1.19.0"
},
{
"fixed": "1.19.2"
}
],
"cpe": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}