CVE-2021-38561Published Dec 26, 2022 · Dec 26Updated Oct 24
golang.org/x/text/language Out-of-bounds Read vulnerability
High7.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| golang.org/x/text Go |
|
|
Original 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.
From the CVE record · mitre