Not rated
CVE-2022-2879 Reader.Read does not set a limit on the maximum size of file headers
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 and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| archive/tar 1.19 | 1.19.0-0 → < 1.19.2 | 1.19.2 |
| archive/tar 1.18 | earliest → < 1.18.7 | 1.18.7 |
References
- go.dev go.dev
- go.dev go.dev
- groups.google.com groups.google.com
- pkg.go.dev pkg.go.dev
- security.gentoo.org security.gentoo.org
Timeline
- Published
- Last modified