Allocation of Resources Without Limits or Throttling Affecting std/archive/tar package, versions <1.24.8>=1.25.0 <1.25.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-STDARCHIVETAR-14548497
  • published6 Jan 2026
  • disclosed29 Oct 2025
  • creditHarshit Gupta

Introduced: 29 Oct 2025

CVE-2025-58183  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade std/archive/tar to version 1.24.8, 1.25.2 or higher.

Overview

std/archive/tar is a Go standard library package std/archive/tar

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling.

Go Vulnerability Report:
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 maliciously-crafted archive containing a large number of sparse regions can cause a Reader to read an unbounded amount of data from the archive into memory. When reading from a compressed source, a small compressed input can result in large allocations.

CVSS Base Scores

version 4.0
version 3.1