{"cve":"CVE-2021-4238","nvd":{"published":"2022-12-27T22:15:12.073","modified":"2026-06-17T04:19:19.660","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1},"cwes":["CWE-331"],"references":["https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","https://pkg.go.dev/vuln/GO-2022-0411","https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","https://pkg.go.dev/vuln/GO-2022-0411"],"products":["goutils_project:goutils"],"source":"nvd","synced_at":"2026-10-19T21:37:31.370122805+00:00"},"epss":{"cve":"CVE-2021-4238","score":0.01408,"percentile":0.72627,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-xg2h-wx96-xgxr","url":"https://osv.dev/vulnerability/GHSA-xg2h-wx96-xgxr","summary":"RandomAlphaNumeric and CryptoRandomAlphaNumeric are not as random as they should be","modified":"2026-09-10T03:49:15.001142254Z","packages":[{"ecosystem":"Go","name":"github.com/Masterminds/goutils","purl":"pkg:golang/github.com/Masterminds/goutils","ranges":["<1.1.1"],"fixed":["1.1.1"]}]},{"id":"GO-2022-0411","url":"https://osv.dev/vulnerability/GO-2022-0411","summary":"Insufficient randomness in github.com/Masterminds/goutils","modified":"2026-02-04T03:14:48.656588Z","packages":[{"ecosystem":"Go","name":"github.com/Masterminds/goutils","purl":"pkg:golang/github.com/Masterminds/goutils","ranges":["<1.1.1"],"fixed":["1.1.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}