Vulnerability Report: GO-2022-1037
standard library- CVE-2022-2879
- Affects: archive/tar
- Published: Oct 06, 2022
- Modified: May 20, 2024
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.
Affected Packages
-
PathGo VersionsSymbols
-
before go1.18.7, from go1.19.0-0 before go1.19.2
Aliases
References
- https://go.dev/issue/54853
- https://go.dev/cl/439355
- https://groups.google.com/g/golang-announce/c/xtuG5faxtaU
- https://vuln.go.dev/ID/GO-2022-1037.json
Credits
- Adam Korczynski (ADA Logics), OSS-Fuzz
Feedback
See anything missing or incorrect?
Suggest an edit to this report.