blob: e4ee42aaf8ccf0fb5070a643b4a34654df7c72b2 [file]
{
"schema_version": "1.3.1",
"id": "GO-2025-4014",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2025-58183",
"CVE-2025-58183"
],
"summary": "Unbounded allocation when parsing GNU sparse map in archive/tar",
"details": "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.",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.24.8"
},
{
"introduced": "1.25.0"
},
{
"fixed": "1.25.2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "archive/tar",
"symbols": [
"Reader.Next",
"readGNUSparseMap1x0"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/709861"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/75677"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI"
}
],
"credits": [
{
"name": "Harshit Gupta (Mr HAX)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2025-4014",
"review_status": "REVIEWED"
}
}