blob: 55d4d0e2fb6e7b5e671cce52379b141d5af5571c [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2022-1037",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2022-2879"
],
"summary": "Unbounded memory consumption when reading headers in archive/tar",
"details": "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": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.18.7"
},
{
"introduced": "1.19.0-0"
},
{
"fixed": "1.19.2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "archive/tar",
"symbols": [
"Reader.Next",
"Reader.next",
"Writer.WriteHeader",
"Writer.writePAXHeader",
"parsePAX"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/54853"
},
{
"type": "FIX",
"url": "https://go.dev/cl/439355"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"
}
],
"credits": [
{
"name": "Adam Korczynski (ADA Logics)"
},
{
"name": "OSS-Fuzz"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-1037",
"review_status": "REVIEWED"
}
}