CVE-2021-38561

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-38561
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-38561.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-38561
Aliases
Downstream
Related
Published
2022-12-26T06:15:10Z
Modified
2025-10-10T03:27:46.523308Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

Affected packages

Git / github.com/golang/text

Affected ranges

Type
GIT
Repo
https://github.com/golang/text
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.0
v0.2.0
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.3.6