CVE-2022-2879

Unbounded memory consumption when reading headers in archive/tar

HIGH
7.5
CVSS Score
Published: October 14, 2022 at 12:00 AM UTC
Updated: June 17, 2026 at 04:42 AM UTC
2 products affected across 2 vendorsGoGo

Using archive/tar by Go standard library?

Get instant alerts when new vulnerabilities affect archive/tar - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.18.71.19.0 ≤ v < 1.19.2
Affected range stops below 1.18.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.19.2, so it looks safe — our inference, not a vendor statement
v < 1.18.71.19.0-0 ≤ v < 1.19.21.19.0-0
Affected range stops below 1.18.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.19.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-770

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card