PT-2021-7944 · Google+4 · Golang.Org/X/Text+4

Published

2021-10-06

·

Updated

2026-04-01

·

CVE-2021-38561

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions golang.org/x/text versions prior to 0.3.7
Description The issue is related to a denial-of-service attack that can occur due to an out-of-bounds read during BCP 47 language tag parsing. This happens because of mishandled index calculation. If untrusted user input is parsed, it can be used as a vector for such an attack. The vulnerability is associated with a buffer read beyond its limits in memory, which a remote attacker can exploit to cause a service disruption.
Recommendations For versions prior to 0.3.7, update to version 0.3.7 or later to resolve the issue. As a temporary workaround, consider avoiding the parsing of untrusted user input with the golang.org/x/text/language component until a patch is applied. Restrict access to the Parse function to minimize the risk of exploitation.

Fix

DoS

Out of bounds Read

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-41221
AZL-41469
AZL-44622
AZL-44952
AZL-45375
BDU:2023-05838
CLEANSTART-2026-MF20926
CVE-2021-38561
GHSA-PPP9-7JFF-5VJ2
GO-2021-0113
OPENSUSE-SU-2024:12599-1
OPENSUSE-SU-2024:14015-1
RHSA-2023:0407
USN-5873-1

Affected Products

Astra Linux
Debian
Linuxmint
Ubuntu
Golang.Org/X/Text