CVE-2021-4238

published 27 Dec 2022 · updated 11 Apr 2025

Insufficient randomness in github.com/Masterminds/goutils

9.1CriticalCVSS 9.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.1.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
github.com/Masterminds/goutils<1.1.11.1.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-4238 severity on Zeptric[![CVE-2021-4238](https://zeptric.io/badge/cve/CVE-2021-4238.svg)](https://zeptric.io/cve/CVE-2021-4238)