ADVISORIES

Vulnerability

CVE-2021-4238

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.

10 advisories report this vulnerability, across 6 ecosystems.

Advisories in Go

  • GHSA-3839-6r69-m497

    Duplicate Advisory: GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected

    Critical CVE-2021-4238 Go Updated 10 September 2026
  • GHSA-xg2h-wx96-xgxr

    RandomAlphaNumeric and CryptoRandomAlphaNumeric are not as random as they should be

    Low CVE-2021-4238 Go Updated 10 September 2026
  • GO-2022-0411

    Insufficient randomness in github.com/Masterminds/goutils

    CVE-2021-4238 Go Updated 4 February 2026

References