CVE-2025-58183: Golang · Unbounded allocation when parsing GNU sparse map in archive/tar
Affects golangSource GCVE Database
Not known to be exploited · CVSS 4.3 Medium : upgrade to 1.25.2 or 1.24.8 when convenient.
Data as of 4 Nov 2026, 18:27 UTC
- Patch
- Available – fixed in 1.25.2, 1.24.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 29 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
Upgrade golang to 1.25.2 or 1.24.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamigolangpkg:bitnami/golangOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official patches by upgrading to Go versions 1.24.8 or 1.25.2 or later. These versions contain fixes that impose limits on the number of sparse region data blocks processed by tar.Reader, preventing unbounded memory allocation.
Description
A vulnerability in the Go programming language's archive/tar package allows unbounded memory allocation when parsing GNU tar pax 1.0 sparse files. The tar.Reader does not limit the number of sparse region data blocks, enabling a malicious archive with many sparse regions to cause excessive memory use. This can lead to large memory allocations from small compressed inputs.
References
- openwall.com/lists/oss-security/2025/10/08/1 (opens in a new tab)
- go.dev/cl/709861 (opens in a new tab)
- go.dev/issue/75677 (opens in a new tab)
- groups.google.com/g/golang-announce/c/4Emdl2iQ_bI (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-58183 (opens in a new tab)
- pkg.go.dev/vuln/GO-2025-4014 (opens in a new tab)