ADVISORIES

Vulnerability

CVE-2021-38561

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.

41 advisories report this vulnerability, across 9 ecosystems.

Advisories in Go

  • GHSA-ppp9-7jff-5vj2

    golang.org/x/text/language Out-of-bounds Read vulnerability

    High CVE-2021-38561 Go Updated 10 September 2026
  • GO-2021-0113

    Out-of-bounds read in golang.org/x/text/language

    CVE-2021-38561 Go Updated 4 February 2026

References