{"id":"CVE-2022-2879","published":"2022-10-14T00:00:00Z","modified":"2025-02-13T16:32:38Z","title":"Unbounded memory consumption when reading headers in archive/tar","vendor":"Go standard library","product":"archive/tar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02006,"percentile":0.81305,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/54853","tags":[]},{"url":"https://go.dev/cl/439355","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/xtuG5faxtaU","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-1037","tags":[]},{"url":"https://security.gentoo.org/glsa/202311-09","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":16.26}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"archive/tar","versions":["< 1.18.7",">= 1.19.0-0, < 1.19.2"]}],"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.18.7",">=1.19.0-0, <1.19.2"],"patched":["1.18.7","1.19.2"],"from":["GO-2022-1037"],"provenance":"source"}],"summary":{"text":"The flaw lies in the archive/tar component of the Go standard library, where Reader.Read does not limit the maximum size of file headers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:51Z"},"euvd":{"id":"EUVD-2022-35111","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-32189","published":"2022-08-09","fixed":"1.18.5","kev":false},{"cve":"CVE-2022-27664","published":"2022-09-06","fixed":"1.19.1","kev":false,"link":{"from":"CVE-2022-27664","to":"CVE-2022-2879","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.18.6","toFixed":"1.18.7","daysApart":38}]}},{"cve":"CVE-2022-32190","published":"2022-09-13","fixed":"1.19.1","kev":false,"link":{"from":"CVE-2022-32190","to":"CVE-2022-2879","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.19.1","toFixed":"1.19.2","daysApart":31}]}},{"cve":"CVE-2022-2879","published":"2022-10-14","fixed":"1.19.2","kev":false},{"cve":"CVE-2022-2880","published":"2022-10-14","fixed":"1.19.2","kev":false},{"cve":"CVE-2022-41715","published":"2022-10-14","fixed":"1.19.2","kev":false},{"cve":"CVE-2022-41716","published":"2022-11-02","fixed":"1.19.3","kev":false,"link":{"from":"CVE-2022-2879","to":"CVE-2022-41716","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.18.7","toFixed":"1.18.8","daysApart":19}]}}],"package":"Go:stdlib"}}