Vulnerability
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.
80 advisories report this vulnerability, across 15 ecosystems.
Advisories in Go
-
GO-2022-1037
Unbounded memory consumption when reading headers in archive/tar