CVE-2021-38561

high

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

https://pkg.go.dev/golang.org/x/text/language

https://groups.google.com/g/golang-announce

https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f

https://deps.dev/advisory/OSV/GO-2021-0113

Details

Source: Mitre, NVD

Published: 2022-12-26

Updated: 2023-01-05

Risk Information

CVSS v2

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

Severity: High

CVSS v3

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Severity: High