{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-4238","id":"CVE-2021-4238","title":"Insufficient randomness in github.com/Masterminds/goutils","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.","descriptionLong":"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-27T21:13:50.373Z","updated":"2026-10-20T10:54:04.513560618Z","reserved":"2022-07-29T19:56:49.058Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["github.com/Masterminds/goutils"],"affectedProducts":[{"vendor":"github.com/Masterminds/goutils","product":"github.com/Masterminds/goutils","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.1.1","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/Masterminds/goutils","purl":"pkg:golang/github.com/Masterminds/goutils","ranges":["<1.1.1"],"fixed":["1.1.1"],"advisory":"GHSA-3839-6r69-m497"}],"cwes":["CWE-331"],"aliases":["GHSA-3839-6r69-m497","GHSA-xg2h-wx96-xgxr","GO-2022-0411"],"references":[{"url":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0411","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4238","tags":["advisory"]},{"url":"https://github.com/Masterminds/goutils","tags":["package"]},{"url":"https://github.com/Masterminds/goutils/security/advisories/GHSA-xg2h-wx96-xgxr","tags":["web"]},{"url":"https://github.com/Masterminds/goutils/commit/f1923532a168b8203bfe956d8cd3b17ebece5982","tags":["web"]},{"url":"https://github.com/Masterminds/goutils/releases/tag/v1.1.1","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.01408,"epssPercentile":0.73206,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-4238","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4238","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-4238","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3839-6r69-m497","ok":true,"note":"GHSA-3839-6r69-m497"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xg2h-wx96-xgxr","ok":true,"note":"GHSA-xg2h-wx96-xgxr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-4238","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}