CVE-2021-38561

HIGH7.5EPSS 0.05%

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

Published: 12/26/2022Modified: 4/28/2026
Also known as:GHSA-ppp9-7jff-5vj2RHSA-2023:0407CGA-rxmv-qq37-m2jcDEBIAN-CVE-2021-38561GO-2021-0113RHBA-2023:1649

Description

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.

Affected packages (3)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1HIGH7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References (8)