Advisory

GHSA-ppp9-7jff-5vj2

Also known as: CVE-2021-38561, GO-2021-0113

Summary

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

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-12-26 06:30 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

golang.org/x/text

Go · All systems

Affected

  • introduced 0, fixed 0.3.7 (semver)

Fixed versions

0.3.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences