Security mailing lists by PureSourceCode

CVE-2021-38561

HIGH 7.5CVSS 3.1

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

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.

Published
26 Dec 2022
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-125
Also known as
GHSA-ppp9-7jff-5vj2GO-2021-0113
Sources
NVDJSONOSV GHSA-ppp9-7jff-5vj2JSONOSV GO-2021-0113JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang text
cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*
< 0.3.7 0.3.7
OSV Go golang.org/x/text < 0.3.7 0.3.7

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Dec 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Oct 2021)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 26 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.