PT-2022-6959 · Google+6 · Golang.Org/X/Text/Language+6
Adam Korczynski
+1
·
Published
2022-10-11
·
Updated
2026-01-30
·
CVE-2022-32149
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
golang.org/x/text/language (affected versions not specified)
Description
The issue is related to the ParseAcceptLanguage function, which can be exploited to cause a denial of service by crafting a specific Accept-Language header. This header can cause the function to take significant time to parse, leading to a denial of service. The problem is due to the quadratic time complexity of the BCP 47 tag parser, which is exposed to untrusted user input. The estimated number of potentially affected devices worldwide is not available. There is no information about real-world incidents where this issue was exploited.
Recommendations
For golang.org/x/text/language, consider limiting the total complexity of tags passed into ParseAcceptLanguage by limiting the number of dashes in the string to 1000 as a temporary workaround until a patch is available.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
DoS
Missing Release of Resource after Effective Lifetime
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Debian
Linuxmint
Suse
Ubuntu
Golang.Org/X/Text/Language