Skip to main content
VulnerabilityPublished

CVE-2025-58183: Golang · Unbounded allocation when parsing GNU sparse map in archive/tar

Affects golangSource GCVE Database

0
Compare
Authoritative record:CVE-2025-58183· Medium 4.3

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

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Bitnamigolangpkg:bitnami/golangOther threatsAffected
  • <1.24.8
  • >=1.25.0 <1.25.2
Fixed in
  • 1.24.8
  • 1.25.2

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

Community reviews

Loading reviews…