CVE-2021-38561

golang: out-of-bounds read in golang.org/x/text/language leads to DoS

Published Dec 26, 2022 CVSS 3.1 · 7.5 High EPSS 1.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-7707 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.
Github GHSA Github GHSA GHSA-ppp9-7jff-5vj2 golang.org/x/text/language Out-of-bounds Read vulnerability
Ubuntu USN Ubuntu USN USN-5873-1 Go Text vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat acm
CPEs cpe:/a:redhat:acm:2.6::el8
Vendors & Products Redhat acm
Type Values Removed Values Added
CPEs cpe:/a:redhat:acm:2.6::el8
Vendors & Products Redhat acm
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 14, 2025, 4:15 PM
Reserved
Aug 11, 2021, 12:00 AM
Status
Modified
Published
Dec 26, 2022, 6:15 AM
Modified
Jun 17, 2026, 4:02 AM
Severity
Moderate
Public date
Aug 12, 2021, 12:00 AM