CVE-2021-4238:
GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.49428%
CWE
Published
12/28/2022
Updated
5/20/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/Masterminds/goutils | go | < 1.1.1 | 1.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- Both functions are explicitly named in CVE/GHSA descriptions
- Commit diff shows removal of regex-based digit validation and forced digit insertion logic
- Vulnerability manifests in short strings due to reduced character combination possibilities
- Patch removes these constraints by trusting the underlying CryptoRandom/Random functions
- Added regression tests verify prevention of all-numeric outputs (a side effect of the flawed logic)