CVE-2021-4238
published critical CVSS 3.1 · 9.1Insufficient randomness in github.com/Masterminds/goutils
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| github.com/Masterminds/goutils | — | github.com/Masterminds/goutils0 to < 1.1.1 · Other versions: unaffected | Affected | Not stated | Go |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| github.com/Masterminds/goutils | github.com/Masterminds/goutils | 0 to < 1.1.1 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE 330: Use of Insufficiently Random Values
References
2Provider assertions
3Go · cna
Insufficient randomness in github.com/Masterminds/goutils
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 84e91cd25393ef59285eef5f897411cd3904a012cb08fe97607fb429835d390c
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record