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
Link | Resource |
---|---|
https://go.dev/cl/439355 | Patch |
https://go.dev/issue/54853 | Issue Tracking Third Party Advisory |
https://groups.google.com/g/golang-announce/c/xtuG5faxtaU | Mailing List Release Notes |
https://pkg.go.dev/vuln/GO-2022-1037 | Vendor Advisory |
https://security.gentoo.org/glsa/202311-09 |
Configurations
History
No history.
Information
Published : 2022-10-14 15:15
Updated : 2023-11-25 11:15
NVD link : CVE-2022-2879
Mitre link : CVE-2022-2879
CVE.ORG link : CVE-2022-2879
JSON object : View
Products Affected
golang
- go
CWE
CWE-770
Allocation of Resources Without Limits or Throttling