{"schema_version":"1.3.1","id":"GO-2022-1037","modified":"2024-05-20T16:03:47Z","published":"2022-10-06T16:26:05Z","aliases":["CVE-2022-2879"],"summary":"Unbounded memory consumption when reading headers in archive/tar","details":"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":[{"package":{"name":"stdlib","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.18.7"},{"introduced":"1.19.0-0"},{"fixed":"1.19.2"}]}],"ecosystem_specific":{"imports":[{"path":"archive/tar","symbols":["Reader.Next","Reader.next","Writer.WriteHeader","Writer.writePAXHeader","parsePAX"]}]}}],"references":[{"type":"REPORT","url":"https://go.dev/issue/54853"},{"type":"FIX","url":"https://go.dev/cl/439355"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"}],"credits":[{"name":"Adam Korczynski (ADA Logics)"},{"name":"OSS-Fuzz"}],"database_specific":{"url":"https://pkg.go.dev/vuln/GO-2022-1037","review_status":"REVIEWED"}}