Unbounded memory consumption when reading headers in archive/tar
CVE-2022-2879
7.5HIGH
What is CVE-2022-2879?
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 Version(s)
archive/tar 0 < 1.18.7
archive/tar 1.19.0-0 < 1.19.2
References
CVSS V3.1
Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Adam Korczynski (ADA Logics)
OSS-Fuzz