SecurityContext

CVE-2021-38561: golang.org/x/text - Out-of-Bounds Read

  • Cve: CVE-2021-38561
  • Name: golang.org/x/text - Out-of-Bounds Read
  • 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.
  • Impact: Attackers can cause application crashes or denial-of-service by triggering out-of-bounds read during language tag parsing.
  • Remediation: Update to version 0.3.7 or later.
  • Vulnerability type: out_of_bounds_rw
  • Vulnerability impact: denial_of_service
  • Requirement type: user_interaction
  • Requirements: Attacker needs to provide untrusted user input for parsing
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01484
  • Epss percentile: 0.74663
  • Assignee: [email protected]
  • Published at: 2022-12-26T06:15:10Z
  • Age in days: 1428
  • Modified at: 2026-06-17T04:02:21Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-38561
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-125Out-of-bounds Read

References

Same in every row:

  • Source: nvd
UrlTags
https://deps.dev/advisory/OSV/GO-2021-0113Patch, Third Party Advisory
https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56fMailing List, Patch, Vendor Advisory
https://pkg.go.dev/golang.org/x/text/languageProduct, Vendor Advisory
https://groups.google.com/g/golang-announceMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
golang:text< 0.3.7nonvd/v1/products/golang/text

Projects

RepositoryLink kindsIndexedUrl
golang/textproductyes/v1/repositories/golang/text

Index

  • Repositories: 256
  • Repositories high signal: 7
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts