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 (5)
Core 5
Core References
Patch
https://go.dev/cl/439355
Issue Tracking, Third Party Advisory
https://go.dev/issue/54853
Mailing List, Release Notes
https://groups.google.com/g/golang-announce/c/xtuG5faxtaU
Vendor Advisory
https://pkg.go.dev/vuln/GO-2022-1037
Third Party Advisory
https://security.gentoo.org/glsa/202311-09
Scores
CVSS v3
7.5
EPSS
0.0002
EPSS Percentile
3.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-770
Status
published
Products (1)
golang/go
< 1.18.7
Published
Oct 14, 2022
Tracked Since
Feb 18, 2026