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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/Masterminds/goutils | 1.1.1 | GHSA-3839-6r69-m497 |
| Go | github.com/Masterminds/goutils | 1.1.1 | GO-2022-0411 |
| Go | github.com/Masterminds/goutils | 1.1.1 | GHSA-xg2h-wx96-xgxr |
| Ubuntu:22.04:LTS | golang-github-masterminds-goutils | no fix listed | UBUNTU-CVE-2021-4238 |
| Ubuntu:24.04:LTS | golang-github-masterminds-goutils | no fix listed | UBUNTU-CVE-2021-4238 |
| Ubuntu:25.10 | golang-github-masterminds-goutils | no fix listed | UBUNTU-CVE-2021-4238 |
| Ubuntu:26.04:LTS | golang-github-masterminds-goutils | no fix listed | UBUNTU-CVE-2021-4238 |
| Ubuntu:26.10 | golang-github-masterminds-goutils | no fix listed | UBUNTU-CVE-2021-4238 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| github.com/Masterminds/goutils | github.com/Masterminds/goutils | 0 – before 1.1.1 |