PT-2021-7944

CVE-2021-38561

·

Published

2021-10-06

·

Updated

2026-09-18

Description by

CVSS 2.0
7.8
High
MetricsAV: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.
Exploitability
Fix
Impacts
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-PPP9-7JFF-5VJ2
AZL-41221
AZL-41469
AZL-44622
AZL-44952
AZL-45375
CLEANSTART-2026-DY26014
CLEANSTART-2026-MF20926
CLEANSTART-2026-PE03587
CLEANSTART-2026-PF75550
CLEANSTART-2026-RR97166
CLEANSTART-2026-SD67923
CLEANSTART-2026-XC26421
GO-2021-0113
OPENSUSE-SU-2024:12599-1
OPENSUSE-SU-2024:14015-1
RHSA-2023:0407
USN-5873-1
Found an issue in the description? Have something to add? Feel free to write us 👾