golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP…
Historical advisory recorded 24 Oct 2026 19:17:25 UTC. Read the latest advisory.
nvd · CVE-2021-38561
Publishedgolang.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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2021-38561
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-125
Original publisher date fields
published: 2022-12-26T06:15:10.560
lastModified: 2026-06-17T04:02:21.823
1 source CPE criteria · context only
- cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON