{"id":"CVE-2022-2879","aliases":["CVE-2022-2879","GO-2022-1037","BIT-GOLANG-2022-2879"],"related":["CGA-26rm-6qf5-258v"],"kind":"vulnerability","state":"published","title":"Unbounded memory consumption when reading headers in archive/tar","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Reader.Read no establece un límite en el tamaño máximo de los encabezados de los archivos. Un archivo diseñado de forma maliciosa podía causar que Read asignara cantidades ilimitadas de memoria, causando potencialmente el agotamiento de los recursos o el pánico. Tras la corrección, Reader.Read limita el tamaño máximo de los bloques de encabezado a 1 MiB","source":"nvd"}],"published":"2022-10-06T16:26:05.000Z","modified":"2026-09-08T08:47:48.872Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.18.7","status":"affected"},{"type":"semver","introduced":"1.19.0-0","fixed":"1.19.2","status":"affected"}],"vendor":"Go standard library","product":"archive/tar","package":"archive/tar","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.18.7"},{"type":"semver","introduced":"1.19.0-0","status":"affected","fixed":"1.19.2"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.18.7"},{"status":"affected","introduced":"1.19.0","fixed":"1.19.2"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.18.7"},{"type":"semver","introduced":"1.19.0","status":"affected","fixed":"1.19.2"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/issue/54853","tags":["advisory","issue-tracking","report","third-party-advisory","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/cl/439355","tags":["fix","patch","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/xtuG5faxtaU","tags":["discussion","mailing-list","release-notes","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1037","tags":["advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202311-09","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2879","tags":["web"],"sources":["bitnami"]}],"credits":["Adam Korczynski (ADA Logics)","OSS-Fuzz"],"assigner":"Go","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-2879","url":"https://www.cve.org/CVERecord?id=CVE-2022-2879","licence":"CVE Terms of Use","modified":"2025-02-13T16:32:38.510Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-1037","url":"https://pkg.go.dev/vuln/GO-2022-1037","licence":"CC-BY-4.0","modified":"2026-07-15T14:29:32.954Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-2879","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2879","licence":"Public domain","modified":"2026-06-17T04:42:45.443Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2022-2879","url":"https://osv.dev/vulnerability/BIT-GOLANG-2022-2879","licence":"Apache-2.0","modified":"2026-09-08T08:47:48.872Z"}],"updatedAt":"2026-11-25T22:58:15.697Z","epss":{"score":0.02006,"percentile":0.81393,"date":"2026-12-01T12:00:22.000Z"}}