{"api_version":"1","generated_at":"2026-07-23T11:59:05+00:00","cve":"CVE-2021-4238","urls":{"html":"https://cve.report/CVE-2021-4238","api":"https://cve.report/api/cve/CVE-2021-4238.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-4238","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-4238"},"summary":{"title":"CVE-2021-4238","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.","state":"PUBLIC","assigner":"security@golang.org","published_at":"2022-12-27 22:15:00","updated_at":"2023-01-05 04:43:00"},"problem_types":["CWE-331"],"metrics":[],"references":[{"url":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","name":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","refsource":"MISC","tags":[],"title":"Remove unnecessary checks on a value that is already definitely an al… · Masterminds/goutils@869801f · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pkg.go.dev/vuln/GO-2022-0411","name":"https://pkg.go.dev/vuln/GO-2022-0411","refsource":"MISC","tags":[],"title":"GO-2022-0411 - Go Packages","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-4238","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4238","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"4238","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"goutils_project","cpe5":"goutils","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"go","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-4238","qid":"904881","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for helm (12351)"},{"cve":"CVE-2021-4238","qid":"905111","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for terraform (12657)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2021-4238","ASSIGNER":"security@golang.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE 330: Use of Insufficiently Random Values"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"github.com/Masterminds/goutils","product":{"product_data":[{"product_name":"github.com/Masterminds/goutils","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"1.1.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1","refsource":"MISC","name":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1"},{"url":"https://pkg.go.dev/vuln/GO-2022-0411","refsource":"MISC","name":"https://pkg.go.dev/vuln/GO-2022-0411"}]}},"nvd":{"publishedDate":"2022-12-27 22:15:00","lastModifiedDate":"2023-01-05 04:43:00","problem_types":["CWE-331"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.2}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:goutils_project:goutils:*:*:*:*:*:go:*:*","versionEndExcluding":"1.1.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}