CVE-2021-4238
CRITICAL 9.1CVSS 3.1Duplicate Advisory: GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected
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.
- Published
- 27 Dec 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-331
- Also known as
- GHSA-3839-6r69-m497GHSA-xg2h-wx96-xgxrGO-2022-0411
- Sources
- NVDJSONOSV GHSA-3839-6r69-m497JSONOSV GHSA-xg2h-wx96-xgxrJSONOSV GO-2022-0411JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | goutils_project | goutilscpe:2.3:a:goutils_project:goutils:*:*:*:*:*:go:*:* |
< 1.1.1 | 1.1.1 |
| OSV | Go | github.com/Masterminds/goutils | < 1.1.1 | 1.1.1 |
References
- https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1 · Patch, Third Party Advisory, WEB, FIX
- https://pkg.go.dev/vuln/GO-2022-0411 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-4238 · ADVISORY
- https://github.com/Masterminds/goutils · PACKAGE
- https://github.com/Masterminds/goutils/security/advisories/GHSA-xg2h-wx96-xgxr · WEB
- https://github.com/Masterminds/goutils/commit/f1923532a168b8203bfe956d8cd3b17ebece5982 · WEB
- https://github.com/Masterminds/goutils/releases/tag/v1.1.1 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 May 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Dec 2022)