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

  • AZL-41275

    CVE-2021-4238 affecting package influxdb for versions less than 2.7.3-3

    CVE-2021-4238 Azure Linux Updated 23 November 2026
  • CGA-3f45-9j5x-95w7
    CVE-2021-4238 Chainguard Updated 5 November 2026
  • CGA-cq2r-f7hr-xm7x
    CVE-2021-4238 Chainguard Updated 5 November 2026
  • CGA-gc3j-pqgh-rcxh
    CVE-2021-4238 ChainguardWolfi Updated 5 November 2026
  • CGA-pf5v-h6f6-m3ph
    CVE-2021-4238 ChainguardWolfi Updated 5 November 2026
  • 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
  • RHSA-2023:0540

    Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.1.6 security update

    CVE-2021-4238 Red Hat Updated 13 November 2026
  • UBUNTU-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.…

    CVE-2021-4238 Ubuntu Updated 17 October 2026

References