CVE-2022-2879

high

Description

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.

References

https://go.dev/issue/54853

https://groups.google.com/g/golang-announce/c/xtuG5faxtaU

https://go.dev/cl/439355

https://pkg.go.dev/vuln/GO-2022-1037

Details

Source: MITRE

Published: 2022-10-14

Updated: 2023-03-03

Type: CWE-770

CVSS v3

Base Score: 7.5

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Impact Score: 3.6

Exploitability Score: 3.9

Severity: HIGH