Vulnerabilities / CVE-2021-4238

critical

CVE-2021-4238

goutils: RandomAlphaNumeric and CryptoRandomAlphaNumeric are not as random as they should be

Published Modified CWE 331
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat7.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux. Rated lower by Red Hat (high), GHSA (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0influxdb0:2.7.3-3.azl3
chainguarddynamic-localpv-provisioner, dynamic-localpv-provisioner-fips3.4.1-r3 and 1 more
go::GitHub Security Advisory Gogithub.com/Masterminds/goutils1.1.1
wolfidynamic-localpv-provisioner3.4.1-r3
Show all 5 entries from 4 sources
SourcePackageFixed in
Azure Linux 3.0influxdb0:2.7.3-3.azl3
chainguarddynamic-localpv-provisioner3.4.1-r3
chainguarddynamic-localpv-provisioner-fips3.5.0-r0
go::GitHub Security Advisory Gogithub.com/Masterminds/goutils1.1.1
wolfidynamic-localpv-provisioner3.4.1-r3

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.