{"id":"GO-2022-1037","revision":"9370c4f48f53497eb12edda0868767c1","records":[{"revision":"9370c4f48f53497eb12edda0868767c1","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2022-1037","aliases":["BIT-golang-2022-2879","CVE-2022-2879"],"title":"Unbounded memory consumption when reading headers in archive/tar","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.","state":0,"publishedAt":"2022-10-06T16:26:05+00:00","modifiedAt":"2026-07-15T14:29:32.9542601+00:00","affected":[{"ecosystem":"Go","name":"stdlib","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.18.7"},{"kind":"introduced","version":"1.19.0-0"},{"kind":"fixed","version":"1.19.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/issue/54853","https://go.dev/cl/439355","https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"],"sourceUrl":"https://osv.dev/vulnerability/GO-2022-1037","license":"OSV · upstream source license applies","key":"osv:GO-2022-1037","identifiers":["GO-2022-1037","BIT-golang-2022-2879","CVE-2022-2879"]},"retained":false,"historicalAffected":[]}],"coverage":[]}