Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/Masterminds/goutils
  4. ›
  5. CVE-2021-4238

CVE-2021-4238: GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected

December 28, 2022 (updated December 30, 2022)

Randomly-generated alphanumeric strings contain significantly less entropy than expected. The RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions.

References

  • github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1
  • github.com/advisories/GHSA-3839-6r69-m497
  • nvd.nist.gov/vuln/detail/CVE-2021-4238
  • pkg.go.dev/vuln/GO-2022-0411

Code Behaviors & Features

Detect and mitigate CVE-2021-4238 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.1

Fixed versions

  • v1.1.1

Solution

Upgrade to version 1.1.1 or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Source file

go/github.com/Masterminds/goutils/CVE-2021-4238.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:03 +0000.