CVEvulnerability
CVE-2021-4238
9.1 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-12-27
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.1 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 9.1 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Weaknesses
- CWE-331
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 configurations
• goutils project goutils (< 1.1.1)
Related
Weakness · CWE (1)
- CWE-331 Insufficient Entropy weakness
References
- https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1 Patch, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0411 Exploit, Patch, Third Party Advisory
- https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1 Patch, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0411 Exploit, Patch, Third Party Advisory