Skip to content

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

High severity GitHub Reviewed Published Dec 26, 2022 to the GitHub Advisory Database • Updated Oct 2, 2023

Package

gomod golang.org/x/text (Go)

Affected versions

< 0.3.7

Patched versions

0.3.7

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

Published by the National Vulnerability Database Dec 26, 2022
Published to the GitHub Advisory Database Dec 26, 2022
Reviewed Jan 9, 2023
Last updated Oct 2, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2021-38561

GHSA ID

GHSA-ppp9-7jff-5vj2

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.