CVE-2021-4238Goutils Project Goutils
Critical 9.1 No auth needed
Follow: this CVE · Goutils Project · Goutils Project Goutils We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Dec 27, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-331
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Goutils.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/Masterminds/goutils |
< 1.1.1 |
1.1.1 |
go get github.com/Masterminds/goutils@v1.1.1 |
| Go | github.com/Masterminds/goutils |
< 1.1.1 |
1.1.1 |
go get github.com/Masterminds/goutils@v1.1.1 |
Per OSV / GitHub Advisories (GHSA-xg2h-wx96-xgxr, GO-2022-0411). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| goutils_project | goutils | < 1.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- pkg.go.dev Exploit Patch Third Party Advisory