{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-2879","id":"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.","descriptionLong":"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.","published":"2022-10-14T00:00:00.000Z","updated":"2026-10-28T02:31:05.731925061Z","reserved":"2022-08-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Go standard library archive/tar"],"affectedProducts":[{"vendor":"Go standard library","product":"archive/tar","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.18.7","status":"affected","versionType":"semver"},{"version":"1.19.0-0","lessThan":"1.19.2","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"stdlib","purl":"pkg:golang/stdlib","ranges":["<1.18.7",">=1.19.0-0 <1.19.2"],"fixed":["1.18.7","1.19.2"],"advisory":"GO-2022-1037"}],"cwes":["CWE-770"],"aliases":["BIT-golang-2022-2879","GO-2022-1037"],"references":[{"url":"https://go.dev/issue/54853","tags":["x_transferred","Issue Tracking","Third Party Advisory","web","report"]},{"url":"https://go.dev/cl/439355","tags":["x_transferred","Patch","web","fix"]},{"url":"https://groups.google.com/g/golang-announce/c/xtuG5faxtaU","tags":["x_transferred","Mailing List","Release Notes","web"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1037","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://security.gentoo.org/glsa/202311-09","tags":["x_transferred","advisory"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2879.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2879","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02006,"epssPercentile":0.81219,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-2879","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2879","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-2879","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-2879","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}