blob: c83fe484b5be7add8eeebb3034ca819ec1fc4f9b [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2022-1039",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2022-41715"
],
"summary": "Memory exhaustion when compiling regular expressions in regexp/syntax",
"details": "Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service.\n\nThe parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory.\n\nAfter fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.",
"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": "regexp/syntax",
"symbols": [
"Parse",
"parse",
"parser.factor",
"parser.push",
"parser.repeat"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/55949"
},
{
"type": "FIX",
"url": "https://go.dev/cl/439356"
},
{
"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-1039",
"review_status": "REVIEWED"
}
}