{"id":"CVE-2022-32149","aliases":["CVE-2022-32149","GHSA-69ch-w2m2-3vjp","GO-2022-1059"],"related":["CGA-wf56-6rqf-4crj"],"kind":"vulnerability","state":"published","title":"Denial of service via crafted Accept-Language header in golang.org/x/text/language","summary":"An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.","source":"cvelist"},{"lang":"en","text":"The BCP 47 tag parser has quadratic time complexity due to inherent aspects of its design. Since the parser is, by design, exposed to untrusted user input, this can be leveraged to force a program to consume significant time parsing Accept-Language headers. The parser cannot be easily rewritten to fix this behavior for various reasons. Instead the solution implemented in this CL is to limit the total complexity of tags passed into ParseAcceptLanguage by limiting the number of dashes in the string to 1000. This should be more than enough for the majority of real world use cases, where the number of tags being sent is likely to be in the single digits.\n\n### Specific Go Packages Affected\ngolang.org/x/text/language","format":"markdown","source":"ghsa"},{"lang":"es","text":"Un atacante podría causar una denegación de servicio al diseñar un encabezado Accept-Language que ParseAcceptLanguage tardaría mucho tiempo en analizar","source":"nvd"}],"published":"2022-10-11T18:16:24.000Z","modified":"2026-09-10T03:49:46.240Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-772"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.3.8","status":"affected"}],"vendor":"golang.org/x/text","product":"golang.org/x/text/language","package":"golang.org/x/text/language","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.8"}],"ecosystem":"Go","package":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.8"}],"ecosystem":"Go","package":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","source":"go"},{"ranges":[{"status":"affected","fixed":"0.3.8"}],"vendor":"golang","product":"text","cpe":"cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://go.dev/issue/56152","tags":["issue-tracking","report","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://go.dev/cl/442235","tags":["fix","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://groups.google.com/g/golang-announce/c/-hjNw559_tE/m/KlGTfid5CAAJ","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1059","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230203-0006/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32149","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/golang/go/issues/56152","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/golang/text/commit/434eadcdbc3b0256971992e8c70027278364c72c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/golang/text","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230203-0006","tags":["web"],"sources":["ghsa"]}],"credits":["Adam Korczynski (ADA Logics)","OSS-Fuzz"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-05-15T20:34:55.435Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-32149","url":"https://www.cve.org/CVERecord?id=CVE-2022-32149","licence":"CVE Terms of Use","modified":"2025-05-15T20:35:11.868Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-69ch-w2m2-3vjp","url":"https://github.com/advisories/GHSA-69ch-w2m2-3vjp","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:46.240Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-1059","url":"https://pkg.go.dev/vuln/GO-2022-1059","licence":"CC-BY-4.0","modified":"2026-02-04T03:39:03.311Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-32149","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32149","licence":"Public domain","modified":"2026-06-17T04:46:45.967Z"}],"updatedAt":"2026-11-25T22:58:15.698Z","epss":{"score":0.01841,"percentile":0.79643,"date":"2026-12-02T12:00:21.000Z"}}