CVE-2022-2879GO-2022-1037BIT-GOLANG-2022-2879
Unbounded memory consumption when reading headers in archive/tar
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.18.7, 1.19.2
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- archive/tar
fixed in 1.18.7; From 1.19.0-0 · fixed in 1.19.2
- stdlibGo
fixed in 1.18.7; From 1.19.0-0 · fixed in 1.19.2