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/issue/54853 | Issue Tracking Third Party Advisory |
https://groups.google.com/g/golang-announce/c/xtuG5faxtaU | Mailing List Release Notes |
https://go.dev/cl/439355 | Patch |
https://pkg.go.dev/vuln/GO-2022-1037 | Vendor Advisory |
Configurations
Information
Published : 2022-10-14 08:15
Updated : 2023-03-03 07:41
NVD link : CVE-2022-2879
Mitre link : CVE-2022-2879
JSON object : View
CWE
CWE-770
Allocation of Resources Without Limits or Throttling
Products Affected
golang
- go