CVE-2022-2879: Unbounded memory consumption when reading headers in archive/tar
Vulnerability summary
CVE-2022-2879 is a high (CVSS 7.5) vulnerability in go standard library archive/tar. EPSS estimates a 2.01% chance of exploitation in the next 30 days, higher than 80.8% of scored vulnerabilities.
Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 20 · Related 8Timeline
- 14-10-2022PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.01%
Chance of exploitation in the next 30 days
Percentile
81%
Versus all other CVEs
30-day change
Increase +0.34 pp
From 1.67% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard10 products
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compatAll versions (No fix recorded)
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r40 | < 0.19.0-r31
- katib-suggestion-nas-darts< 0.19.0-r31
Wolfi10 products
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compatAll versions (No fix recorded)
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r40 | < 0.19.0-r31
- katib-suggestion-nas-darts< 0.19.0-r31
Ubuntu9 products
- golang-1.10All versions (No fix recorded)
- golang-1.13< 1.13.8-1ubuntu1~16.04.3+esm3 | < 1.13.8-1ubuntu1~18.04.4+esm1 | < 1.13.8-1ubuntu1.2 | < 1.13.8-1ubuntu2.22.04.2
- golang-1.14All versions (No fix recorded)
- golang-1.16< 1.16.2-0ubuntu1~18.04.2+esm1 | < 1.16.2-0ubuntu1~20.04.1
- golang-1.17All versions (No fix recorded)
Alpine1 product
- go≥ 1.19.0, < 1.18.7-r0 | ≥ 1.19.0, < 1.19.2-r0
Debian1 product
- golang-1.19< 1.19.2-1
Go1 product
- stdlib≥ 1.19.0-0, < 1.19.2
Go standard library1 product
- archive/tar< 1.18.7 | ≥ 1.19.0-0, < 1.19.2
Golang1 product
- go< 1.18.7 | ≥ 1.19.0, < 1.19.2
Opensuse1 product
- docker-compose&distro=openSUSE Tumbleweed< 2.12.0-1.1
9 vendors · 35 products
References
15 links- pkg.go.dev/vuln/GO-2022-1037Vendor Advisory