Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2022-2879

Unbounded memory consumption when reading headers in archive/tar

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library archive/tar

Default version status: unaffected

  • 0 to < 1.18.7affected
  • 1.19.0-0 to < 1.19.2affected

References