CVE-2021-38561
Aliases:GHSA-ppp9-7jff-5vj2GO-2021-0113
Advisory lineage Upstream: 0 Downstream: 7
Modified
Published: 26 Dec 2022, 00:00
Last modified:14 Apr 2025, 16:15
Vulnerability Summary
Overall Risk (default)
medium
30/100 CVSS Score
7.5 HIGH
v3.1 (cve.org)
EPSS Score
0.05% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
26 Dec 2022, 00:00
Published
Vulnerability first disclosed
14 Apr 2025, 16:15
Last Modified
Vulnerability information updated
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Trends
Current EPSS score: 0.05%• Percentile: 17%
Techniques & Countermeasures
- CWE-125•Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
Affected Systems
- golang.org/x•text
< 0.3.7
- golang•text
< 0.3.7
References (7)
- https://groups.google.com/g/golang-announce
- https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f
- https://deps.dev/advisory/OSV/GO-2021-0113
- https://pkg.go.dev/golang.org/x/text/language
- https://nvd.nist.gov/vuln/detail/CVE-2021-38561
- https://go.dev/cl/340830
- https://pkg.go.dev/vuln/GO-2021-0113