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://security.gentoo.org/glsa/202311-09

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

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

https://go.dev/issue/54853

https://go.dev/cl/439355

Details

Source: Mitre, NVD

Published: 2022-10-14

Updated: 2023-11-25

Risk Information

CVSS v2

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

Severity: High

CVSS v3

Base Score: 7.5

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

Severity: High