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

- Severity: Medium 4.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2025-10-29T21:51:04.000Z
- Modified: 2026-11-25T10:42:40.526Z
- Also known as: GO-2025-4014, BIT-GOLANG-2025-58183
- Related: RHSA-2025:21778, RHSA-2025:21779, RHSA-2025:21815, RHSA-2025:21816, RHSA-2025:21856, RHSA-2025:21964, RHSA-2025:22011, RHSA-2025:22012, RHSA-2025:22030, RHSA-2025:22181, RHSA-2025:22255, RHSA-2025:22668, RHSA-2025:22899, RHSA-2025:23001, RHSA-2025:23002, RHSA-2025:23087, RHSA-2025:23088, RHSA-2025:23294, RHSA-2025:23295, RHSA-2025:23325, RHSA-2025:23326, RHSA-2025:23347, RHSA-2025:23348, RHSA-2025:23374, RHSA-2025:23394, RHSA-2025:23733, RHSA-2025:23736, RHSA-2025:23737, RHSA-2025:23740, RHSA-2025:23741, RHSA-2025:23746, RHSA-2025:23747, RHSA-2025:23948, RHSA-2026:0226, RHSA-2026:0227, RHSA-2026:0243, RHSA-2026:0244, RHSA-2026:0245, RHSA-2026:0246, RHSA-2026:0312, RHSA-2026:0314, RHSA-2026:0424, RHSA-2026:0426, RHSA-2026:0477, RHSA-2026:0973, RHSA-2026:0987, RHSA-2026:1025, RHSA-2026:102902, RHSA-2026:10703, RHSA-2026:1377, RHSA-2026:1378, RHSA-2026:1379, RHSA-2026:1380, RHSA-2026:1381, RHSA-2026:17446, RHSA-2026:17595, RHSA-2026:1837, RHSA-2026:1838, RHSA-2026:2071, RHSA-2026:2082, RHSA-2026:21701, RHSA-2026:26527, RHSA-2026:26541, RHSA-2026:2711, RHSA-2026:3875, RHSA-2026:4418, RHSA-2026:4464, RHSA-2026:4532, RHSA-2026:4533, RHSA-2026:4693, RHSA-2026:5086, RHSA-2026:5234, RHSA-2026:5866, RHSA-2026:5876, RHSA-2026:6191, RHSA-2026:7291, RHSA-2026:7385, RHSA-2026:8325
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## Description

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.

(As written by CVE List.)

## Affected

- archive/tar: before 1.24.8; from 1.25.0 before 1.25.2
- stdlib (Go): before 1.24.8; from 1.25.0 before 1.25.2
- golang (Bitnami): before 1.24.8; from 1.25.0 before 1.25.2

## Every score

- CISA-ADP: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/cl/709861> (fix, web)
- <https://go.dev/issue/75677> (report, web)
- <https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI> (web)
- <https://pkg.go.dev/vuln/GO-2025-4014> (web)
- <http://www.openwall.com/lists/oss-security/2025/10/08/1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58183> (web)

## Sources

- CVE List: [CVE-2025-58183](https://www.cve.org/CVERecord?id=CVE-2025-58183), CVE Terms of Use, modified 2025-11-04
- Go Vulnerability Database: [GO-2025-4014](https://pkg.go.dev/vuln/GO-2025-4014), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2025-58183](https://nvd.nist.gov/vuln/detail/CVE-2025-58183), Public domain, modified 2026-10-08
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-58183](https://osv.dev/vulnerability/BIT-GOLANG-2025-58183), Apache-2.0, modified 2025-11-06

---

Page: https://cve.day/CVE-2025-58183 · Whole record: https://cve.day/CVE-2025-58183.json · Rebuilt by cve.day 2026-11-25T22:59:07.016Z
