{"id":"CVE-2021-4238","aliases":["GHSA-3839-6r69-m497","GHSA-xg2h-wx96-xgxr","GO-2022-0411"],"url":"https://o3.security/vulnerability/CVE-2021-4238","summary":"Duplicate Advisory: GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected","details":"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":"2022-12-27T22:15:12.073Z","modified":"2026-07-09T00:21:28.789532Z","cvss":{"score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/Masterminds/goutils","fixedVersion":"1.1.1"}],"fix":{"url":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","label":"Masterminds/goutils@869801f"},"references":[{"type":"FIX","url":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1"},{"type":"FIX","url":"https://pkg.go.dev/vuln/GO-2022-0411"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T00:21:28.789532Z"}}