CVE-2022-32149: Denial of service via crafted Accept-Language header in golang.org/x/text/language

Published Oct 11, 2022
·
Updated

A vulnerability was found in golang.org/x/text/language package which could cause a denial of service. An attacker can craft an Accept-Language header which ParseAcceptLanguage will take significant time to parse. Version v0.3.8 of golang.org/x/text fixes a vulnerability.

References: https://groups.google.com/g/golang-dev/c/qfPIly0X7aU. https://go.dev/issue/56152.

Upstream Commit: https://github.com/golang/text/commit/434eadcdbc3b0256971992e8c70027278364c72c

Other sources

A vulnerability was found in the golang.org/x/text/language package. An attacker can craft an Accept-Language header which ParseAcceptLanguage will take significant time to parse. This issue leads to a denial of service, and can impact availability.

An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.

Denial of service via crafted Accept-Language header in golang.org/x/text/language

Microsoft

Golang Go is vulnerable to a denial of service, caused by improper input validation by the golang.org/x/text/language package. By sending a specially-crafted Accept-Language header, a remote attacker could exploit this vulnerability to cause ParseAcceptLanguage to take significant time to parse, and results in a denial of service condition.

IBM

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.

Specific Go Packages Affected golang.org/x/text/language

GitHub

Affected Software

45 affected componentsFixes available
redhat/podman<3:4.2.0-7.rhaos4.12.el9
3:4.2.0-7.rhaos4.12.el9
redhat/kubevirt<0:4.13.0-1469.el7
0:4.13.0-1469.el7
redhat/kubevirt<0:4.13.0-1469.el8
0:4.13.0-1469.el8
redhat/kubevirt<0:4.13.0-1469.el9
0:4.13.0-1469.el9
Golang text<0.3.8
go/golang.org/x/text<0.3.8
0.3.8
IBM Data Virtualization on Cloud Pak for Data<=3.0
IBM Watson Query on Cloud Pak for Data<=2.2
IBM Watson Query on Cloud Pak for Data<=2.1
IBM Watson Query on Cloud Pak for Data<=2.0
IBM Data Virtualization on Cloud Pak for Data<=1.8
IBM Data Virtualization on Cloud Pak for Data<=1.7
redhat/golang.org/x/text<0.3.8
0.3.8
Microsoft azl3 cni 1.1.2-4
Microsoft cbl2 cni 1.0.1-19
Microsoft cbl2 terraform 1.3.2-25
Microsoft cbl2 gh 2.13.0-24
Microsoft cbl2 libcontainers-common 20210626-7
Microsoft cbl2 sriov-network-device-plugin 3.5.1-3
Microsoft azl3 keda 2.4.0-15
Microsoft cbl2 prometheus-adapter 0.10.0-17
Microsoft cbl2 application-gateway-kubernetes-ingress 1.4.0-25
Microsoft cbl2 keda 2.4.0-29
Microsoft azl3 keda 2.14.0-1
Microsoft azl3 kubevirt 1.2.0-1
Microsoft azl3 cni 1.1.2-3
Microsoft azl3 sriov-network-device-plugin 3.7.0-1
Microsoft azl3 multus 4.0.2-1
Microsoft azl3 sriov-network-device-plugin 3.5.1-3
Microsoft azl3 containernetworking-plugins 1.6.1-4
Microsoft azl3 node-problem-detector 0.8.15-1
Microsoft azl3 node-problem-detector 0.8.10-18
Microsoft cbl2 cri-o 1.22.3-14
Microsoft azl3 multus 3.8-13
Microsoft cbl2 terraform 1.3.2-25
Microsoft azl3 kubevirt 0.59.0-14
Microsoft cbl2 kubevirt 0.59.0-28
Microsoft cbl2 git-lfs 3.1.4-17
Microsoft cbl2 node-problem-detector 0.8.10-20
Microsoft cbl2 containerized-data-importer 1.55.0-23
Microsoft cbl2 influxdb 2.6.1-22
Microsoft cbl2 gh 2.13.0-24
Microsoft cbl2 cf-cli 8.4.0-24
Microsoft cbl2 application-gateway-kubernetes-ingress 1.4.0-25
Microsoft cbl2 cni 1.0.1-18

Event History

Oct 11, 2022
CVE Published
12:00 AM
Oct 12, 2022
Data Sourced
via Red Hat·06:41 AM
DescriptionSeverityAffected Software
Oct 14, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Advisory Published
via GitHub·07:00 PM
Nov 8, 2023
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:00 AM
SeverityAffected Software
Updated
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
Description
Aug 15, 2025
Data Sourced
via IBM·03:29 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-32149?

CVE-2022-32149 is a vulnerability that allows an attacker to cause a denial of service (DoS) by crafting an Accept-Language header.

2

What is the severity of CVE-2022-32149?

CVE-2022-32149 has a severity rating of 7.5 (High).

3

Which software packages are affected by CVE-2022-32149?

The software packages affected by CVE-2022-32149 include golang.org/x/text, podman, and kubevirt.

4

How can an attacker exploit CVE-2022-32149?

An attacker can exploit CVE-2022-32149 by leveraging the quadratic time complexity of the BCP 47 tag parser to force a program to consume significant time parsing Accept-Language headers.

5

How can I fix CVE-2022-32149?

To fix CVE-2022-32149, it is recommended to update the affected software packages to the latest versions provided by the vendors.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203