blob: f5e534174741f5e74ab388967b7abb3858ad8ceb [file] [log] [blame]
{
"dataType": "CVE_RECORD",
"dataVersion": "5.0",
"cveMetadata": {
"cveId": "CVE-2022-2879"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc"
},
"descriptions": [
{
"lang": "en",
"value": "Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB."
}
],
"affected": [
{
"vendor": "Go standard library",
"product": "archive/tar",
"collectionURL": "https://pkg.go.dev",
"packageName": "archive/tar",
"versions": [
{
"version": "0",
"lessThan": "1.18.7",
"status": "affected",
"versionType": "semver"
},
{
"version": "1.19.0",
"lessThan": "1.19.2",
"status": "affected",
"versionType": "semver"
}
],
"programRoutines": [
{
"name": "Reader.next"
},
{
"name": "parsePAX"
},
{
"name": "Writer.writePAXHeader"
},
{
"name": "Reader.Next"
},
{
"name": "Writer.WriteHeader"
}
],
"defaultStatus": "unaffected"
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE 400: Uncontrolled Resource Consumption"
}
]
}
],
"references": [
{
"url": "https://go.dev/issue/54853"
},
{
"url": "https://go.dev/cl/439355"
},
{
"url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"
},
{
"url": "https://pkg.go.dev/vuln/GO-2022-1037"
}
],
"credits": [
{
"lang": "en",
"value": "Adam Korczynski (ADA Logics) and OSS-Fuzz"
}
]
}
}
}