What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: github.com/Masterminds/goutils 1.1.1; Go Github.Com/Masterminds/Goutils 1.1.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-4238 or the next vulnerability affects your stack