CVE-2022-2879Allocation of Resources Without Limits or Throttling in Standard Library Archive TAR

Severity
7.5HIGHNVD
EPSS
0.0%
top 96.65%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 14
Latest updateJan 9

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 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages2 packages

CVEListV5go_standard_library/archive_tar1.19.0-01.19.2+1
NVDgolang/go1.19.01.19.2+1

Patches

🔴Vulnerability Details

4
GHSA
GHSA-fqpx-62jv-7r6r: Reader2022-10-14
CVEList
Unbounded memory consumption when reading headers in archive/tar2022-10-14
OSV
CVE-2022-2879: Reader2022-10-14
OSV
Unbounded memory consumption when reading headers in archive/tar2022-10-06

📋Vendor Advisories

5
Ubuntu
Go vulnerabilities2024-01-09
Ubuntu
Go vulnerabilities2023-04-25
Microsoft
Unbounded memory consumption when reading headers in archive/tar2022-10-11
Red Hat
golang: archive/tar: github.com/vbatts/tar-split: unbounded memory consumption when reading headers2022-10-04
Debian
CVE-2022-2879: golang-1.15 - Reader.Read does not set a limit on the maximum size of file headers. A maliciou...2022
CVE-2022-2879 — HIGH severity | cvebase