ADVISORIES

Go Vulnerability Database

GO-2022-0411

Insufficient randomness in github.com/Masterminds/goutils

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/Masterminds/goutils
All versions before 1.1.1 (fixed in 1.1.1)

References