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.
The product reads data past the end, or before the beginning, of the intended buffer.
Link | Tags |
---|---|
https://groups.google.com/g/golang-announce | third party advisory mailing list |
https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f | patch vendor advisory mailing list |
https://deps.dev/advisory/OSV/GO-2021-0113 | third party advisory patch |
https://pkg.go.dev/golang.org/x/text/language | product vendor advisory |