First published: Thu Aug 12 2021(Updated: )
golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/cri-o | <0:1.24.5-2.rhaos4.11.gitb007cb6.el8 | 0:1.24.5-2.rhaos4.11.gitb007cb6.el8 |
redhat/haproxy | <0:2.2.24-3.rhaos4.11.el8 | 0:2.2.24-3.rhaos4.11.el8 |
redhat/kernel-rt | <0:4.18.0-372.51.1.rt7.208.el8_6 | 0:4.18.0-372.51.1.rt7.208.el8_6 |
redhat/openshift | <0:4.11.0-202304042055.p0.g8f6c8a6.assembly.stream.el8 | 0:4.11.0-202304042055.p0.g8f6c8a6.assembly.stream.el8 |
redhat/kubevirt | <0:4.12.0-1057.el7 | 0:4.12.0-1057.el7 |
redhat/kubevirt | <0:4.12.0-1057.el8 | 0:4.12.0-1057.el8 |
Golang Text | <0.3.7 | |
go/golang.org/x/text | <0.3.7 | 0.3.7 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2021-38561 is a vulnerability in the golang.org/x/text/language package in golang.org/x/text before version 0.3.7.
CVE-2021-38561 has a severity rating of 7.5 (high).
The golang.org/x/text package before version 0.3.7, cri-o before version 0:1.24.5-2.rhaos4.11.gitb007cb6.el8, haproxy before version 0:2.2.24-3.rhaos4.11.el8, kernel-rt before version 0:4.18.0-372.51.1.rt7.208.el8_6, openshift before version 0:4.11.0-202304042055.p0.g8f6c8a6.assembly.stream.el8, kubevirt before versions 0:4.12.0-1057.el7 and 0:4.12.0-1057.el8, and the Golang Text library before version 0.3.7 are affected by CVE-2021-38561.
CVE-2021-38561 can be exploited by an attacker using an incorrectly formatted language tag to cause applications using the vulnerable package to crash or panic.
To fix CVE-2021-38561, update the affected software packages to version 0.3.7 or later.