CVE-2021-4238

Insufficient randomness in github.com/Masterminds/goutils

State
Published
Severity
9.1 Critical
Published
Dec 27, 2022
Updated
Apr 11, 2025
Reserved
Jul 29, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
github.com/Masterminds/goutilsgithub.com/Masterminds/goutils
  • before 1.1.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.