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.
Metrics
CVSS 3.1 9.1/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| github.com/Masterminds/goutils | github.com/Masterminds/goutils | < 1.1.1 |
References
- https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1Patch, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0411Exploit, Patch, Third Party Advisory
- https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1Patch, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0411Exploit, Patch, Third Party Advisory
Timeline
- Published
- Dec 27, 2022
- Last modified
- Jun 17, 2026
- NVD status
- Modified