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

VectorAV: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

ALT-PU-2022-3295
ALT-PU-2023-4133
ALT-PU-2023-4346
ALT-PU-2023-4567
AZL-31972
AZL-33565
AZL-33572
AZL-33575
AZL-33583
AZL-33586
AZL-33589
AZL-33598
AZL-33605
AZL-33608
AZL-33628
AZL-33632
AZL-33643
AZL-33646
AZL-34839
AZL-34903
AZL-35016
AZL-35041
AZL-35285
AZL-37089
AZL-39609
AZL-43735
AZL-43954
AZL-43963
AZL-44613
AZL-45108
AZL-45162
AZL-66915
BDU:2023-05841
CLEANSTART-2026-HV28992
CVE-2022-32149
ECHO-F7F9-6D70-C8E4
GHSA-69CH-W2M2-3VJP
GO-2022-1059
OESA-2024-1527
OESA-2024-1528
OPENSUSE-SU-2023_3868-1
OPENSUSE-SU-2024:12426-1
OPENSUSE-SU-2024:12723-1
OPENSUSE-SU-2024:13109-1
OPENSUSE-SU-2024:14015-1
RHSA-2023:3204
RHSA-2023:3613
RHSA-2024:1994
RHSA-2024:2077
SUSE-SU-2023:2575-1
SUSE-SU-2023:2578-1
SUSE-SU-2023:2579-1
SUSE-SU-2023:3867-1
SUSE-SU-2023:3868-1
SUSE-SU-2023:3875-1
SUSE-SU-2023_3867-1
SUSE-SU-2024:0191-1
SUSE-SU-2024:0196-1
USN-5873-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Suse
Ubuntu
Golang.Org/X/Text/Language