{"id":"UBUNTU-CVE-2021-4238","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.","modified":"2026-05-20T16:05:16.111726662Z","published":"2022-12-27T22:15:00Z","upstream":["CVE-2021-4238"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-4238"},{"type":"REPORT","url":"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1"},{"type":"REPORT","url":"https://pkg.go.dev/vuln/GO-2022-0411"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-4238"}],"affected":[{"package":{"name":"golang-github-masterminds-goutils","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-masterminds-goutils-dev","binary_version":"1.1.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"}},{"package":{"name":"golang-github-masterminds-goutils","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.1-4","binary_name":"golang-github-masterminds-goutils-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"}},{"package":{"name":"golang-github-masterminds-goutils","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-4"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-masterminds-goutils-dev","binary_version":"1.1.1-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"}},{"package":{"name":"golang-github-masterminds-goutils","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-4"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-masterminds-goutils-dev","binary_version":"1.1.1-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}