2022-09-14 01:40:34 +03:00
{
2023-03-31 23:44:23 +03:00
"schema_version" : "1.3.1" ,
2022-09-14 01:40:34 +03:00
"id" : "GO-2022-0515" ,
"modified" : "0001-01-01T00:00:00Z" ,
2023-03-31 23:44:23 +03:00
"published" : "2022-07-20T17:01:45Z" ,
2022-09-14 01:40:34 +03:00
"aliases" : [
"CVE-2022-1962"
] ,
2023-06-06 21:13:32 +03:00
"summary" : "Stack exhaustion due to deeply nested types in go/parser" ,
2022-10-05 19:05:17 +03:00
"details" : "Calling any of the Parse functions on Go source code which contains deeply nested types or declarations can cause a panic due to stack exhaustion." ,
2022-09-14 01:40:34 +03:00
"affected" : [
{
"package" : {
"name" : "stdlib" ,
"ecosystem" : "Go"
} ,
"ranges" : [
{
"type" : "SEMVER" ,
"events" : [
{
"introduced" : "0"
} ,
{
"fixed" : "1.17.12"
} ,
{
2023-05-11 00:12:22 +03:00
"introduced" : "1.18.0-0"
2022-09-14 01:40:34 +03:00
} ,
{
"fixed" : "1.18.4"
}
]
}
] ,
"ecosystem_specific" : {
"imports" : [
{
"path" : "go/parser" ,
"symbols" : [
"ParseExprFrom" ,
"ParseFile" ,
"parser.parseBinaryExpr" ,
"parser.parseIfStmt" ,
"parser.parsePrimaryExpr" ,
"parser.parseStmt" ,
"parser.parseUnaryExpr" ,
"parser.tryIdentOrType" ,
"resolver.closeScope" ,
"resolver.openScope"
]
}
]
}
}
] ,
"references" : [
{
"type" : "FIX" ,
"url" : "https://go.dev/cl/417063"
} ,
{
"type" : "FIX" ,
"url" : "https://go.googlesource.com/go/+/695be961d57508da5a82217f7415200a11845879"
} ,
{
"type" : "REPORT" ,
"url" : "https://go.dev/issue/53616"
} ,
{
"type" : "WEB" ,
"url" : "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE"
}
2022-10-01 17:10:57 +03:00
] ,
"credits" : [
{
"name" : "Juho Nurminen of Mattermost"
}
2022-11-21 21:47:08 +03:00
] ,
2023-03-31 23:44:23 +03:00
"database_specific" : {
2024-05-14 22:19:00 +03:00
"url" : "https://pkg.go.dev/vuln/GO-2022-0515" ,
"review_status" : "REVIEWED"
2023-03-31 23:44:23 +03:00
}
2022-09-14 01:40:34 +03:00
}