Red Hat VEX
RHVEX-CVE-2025-58183
golang: archive/tar: Unbounded allocation when parsing GNU sparse map
Details
A flaw was found in the archive/tar package in the Go standard library. tar.Reader does not set a maximum size on the number of sparse region data blocks in GNU tar pax 1.0 sparse files. A specially crafted tar archive with a pax header indicating a big number of sparse regions can cause a Go program to try to allocate a large amount of memory, causing an out-of-memory condition and resulting in a denial of service.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | weldr-client | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | weldr-client | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2025-58183
- https://bugzilla.redhat.com/show_bug.cgi?id=2407258
- https://www.cve.org/CVERecord?id=CVE-2025-58183
- https://nvd.nist.gov/vuln/detail/CVE-2025-58183
- https://access.redhat.com/errata/RHSA-2026:3122
- https://go.dev/cl/709861
- https://go.dev/issue/75677
- https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
- https://pkg.go.dev/vuln/GO-2025-4014