Description
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.
References (4)
Core 4
Core References
Patch, Third Party Advisory
https://deps.dev/advisory/OSV/GO-2021-0113
Mailing List, Patch, Vendor Advisory
https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f
Mailing List, Third Party Advisory
https://groups.google.com/g/golang-announce
Product, Vendor Advisory
https://pkg.go.dev/golang.org/x/text/language
Scores
CVSS v3
7.5
EPSS
0.0005
EPSS Percentile
16.4%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-125
Status
published
Products (2)
golang/text
< 0.3.7
x/text
0 - 0.3.7Go
Published
Dec 26, 2022
Tracked Since
Feb 18, 2026