CVE-2021-38561

HIGH

golang.org/x/text <0.3.7 - Use After Free

Title source: llm
STIX 2.1

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.

References (4)

Core 4
Core References
Patch, Third Party Advisory
https://deps.dev/advisory/OSV/GO-2021-0113
Mailing List, Third Party Advisory
https://groups.google.com/g/golang-announce

Scores

CVSS v3 7.5
EPSS 0.0005
EPSS Percentile 16.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-125
Status published
Products (2)
golang/text < 0.3.7
x/text 0 - 0.3.7Go
Published Dec 26, 2022
Tracked Since Feb 18, 2026