{"id":"CVE-2021-4238","published":"2022-12-27T21:13:50Z","modified":"2025-04-11T16:17:46Z","title":"Insufficient randomness in github.com/Masterminds/goutils","vendor":"github.com/Masterminds/goutils","product":"github.com/Masterminds/goutils","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01408,"percentile":0.7329,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-0411","tags":[]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":14.66},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"github-com-masterminds-goutils","affectedVersions":[{"vendor":"github.com/Masterminds/goutils","product":"github.com/Masterminds/goutils","versions":["< 1.1.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-11T16:17:07.316383Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/Masterminds/goutils","vulnerableRanges":["<1.1.1"],"patched":["1.1.1"],"from":["GHSA-xg2h-wx96-xgxr","GO-2022-0411"],"provenance":"source"}],"summary":{"text":"The flaw is in the github.com/Masterminds/goutils library, where the RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always include at least one digit from 0 to 9 in the strings they generate, which significantly reduces the entropy of short generated strings. An attacker with network access, requiring no privileges or user interaction, could exploit the reduced entropy to more easily predict or guess short random values produced by these functions, with the default configuration as the only prerequisite.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:08:17Z"},"euvd":{"id":"EUVD-2022-7482","exploited":false,"provenance":"source"}}