CVE-2022-2879

Unbounded memory consumption when reading headers in archive/tar

State
Published
Severity
Not scored
Published
Oct 14, 2022
Updated
Feb 13, 2025
Reserved
Aug 17, 2022

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
archive/tarGo standard library
  • before 1.18.7Affected
  • 1.19.0-0 to before 1.19.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.