Vulnerability · Published Dec 27, 2022 · Assigned by Go

CVE-2021-4238Insufficient randomness in github.com/Masterminds/goutils

Critical 9.1

In plain English

A critical-severity security flaw in github.com/Masterminds/goutils from github.com/Masterminds/goutils. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)1.4%top 27.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/Masterminds/goutils1.1.1GHSA-3839-6r69-m497
Gogithub.com/Masterminds/goutils1.1.1GO-2022-0411
Gogithub.com/Masterminds/goutils1.1.1GHSA-xg2h-wx96-xgxr
Ubuntu:22.04:LTSgolang-github-masterminds-goutilsno fix listedUBUNTU-CVE-2021-4238
Ubuntu:24.04:LTSgolang-github-masterminds-goutilsno fix listedUBUNTU-CVE-2021-4238
Ubuntu:25.10golang-github-masterminds-goutilsno fix listedUBUNTU-CVE-2021-4238
Ubuntu:26.04:LTSgolang-github-masterminds-goutilsno fix listedUBUNTU-CVE-2021-4238
Ubuntu:26.10golang-github-masterminds-goutilsno fix listedUBUNTU-CVE-2021-4238

Affected products (as reported)

VendorProductVersions
github.com/Masterminds/goutils github.com/Masterminds/goutils 0 – before 1.1.1

References