CVE-2021-4238

Insufficient randomness in github.com/Masterminds/goutils

Published Dec 27, 2022 CVSS 3.1 · 9.1 Critical EPSS 1.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-7482 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.
Github GHSA Github GHSA GHSA-3839-6r69-m497 GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected
Github GHSA Github GHSA GHSA-xg2h-wx96-xgxr RandomAlphaNumeric and CryptoRandomAlphaNumeric are not as random as they should be
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Apr 11, 2025, 4:17 PM
Reserved
Jul 29, 2022, 7:56 PM
Status
Modified
Published
Dec 27, 2022, 10:15 PM
Modified
Jun 17, 2026, 4:19 AM
Severity
Important
Public date
Dec 27, 2022, 12:00 AM