Unscored

CVE-2022-2879Unbounded memory consumption when reading headers in archive/tar

Go standard library archive/tar Published: (4 years ago)

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.

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library archive/tar < 1.18.7, 1.19.0-0 – < 1.19.2

References and patches