synced 4 MIN AGO
01 Record

CVE-2021-38561

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,

HighPUBLISHEDCNA: mitre
CNA base score7.5 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

02 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,

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
1.48% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 73.8% of scored records. A rank, not a probability.
NVD base score
7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2022-12-26 00:00Z3 YR AGO
Last updated
2025-04-14 16:15Z1 YR AGO
Reserved
2021-08-11
Assigning CNA
mitre
Record state
PUBLISHED
Severity
High (CVSS 7.5)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
Data version
5.1
Document digest
1035b84cdb3c78c4129e21c7748e2a0955cb1135953ba1854aaa3d0154d42d7d

05 Affected products

VendorProductVersionsPlatforms
golangtextNot specified—
redhatacmNot specified—
redhatadvanced_cluster_securityNot specified—
redhatcontainer_native_virtualizationNot specified—
redhatenterprise_linuxNot specified—
redhatloggingNot specified—
redhatmigration_toolkit_virtualizationNot specified—
redhatocp_toolsNot specified—
redhatopenshiftNot specified—
redhatopenshift_api_data_protectionNot specified—
redhatopenshift_container_storageNot specified—
redhatopenshift_data_foundationNot specified—
redhatquayNot specified—
redhatrhmtNot specified—
redhatservice_meshNot specified—
redhatstorageNot specified—

06 References

07 Fixed in

Debian 12

  • golang-golang-x-text
    Fixed in 0.3.7-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • golang-golang-x-text
    Fixed in 0.3.7-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • golang-golang-x-text
    Fixed in 0.3.7-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • golang-x-text
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • golang-x-text
    Fixed in 0.0~git20170627.0.6353ef0-1ubuntu2.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • golang-golang-x-text
    Fixed in 0.3.2-4ubuntu0.1
  • golang-x-text
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • golang-golang-x-text
    Fixed in 0.3.7-1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.