Skip to content
OpenAdvisories
Critical · 9.1 CVE-2021-4238 EUVD-2022-7482GHSA-3839-6r69-m497GHSA-xg2h-wx96-xgxrGO-2022-0411

Insufficient randomness in github.com/Masterminds/goutils

Published Dec 27, 2022 · Updated Apr 11, 2025 · Assigned by Go

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

VendorProductAffectedFixed
github.com/Masterminds/goutils github.com/Masterminds/goutils < 1.1.1 1.1.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-masterminds-goutils No fix yet —
Ubuntu 26.04 LTS golang-github-masterminds-goutils No fix yet —
Ubuntu 25.10 golang-github-masterminds-goutils No fix yet —
Ubuntu 24.04 LTS golang-github-masterminds-goutils No fix yet —
Ubuntu 22.04 LTS golang-github-masterminds-goutils No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Service Mesh 2 servicemesh +4 2.1.6-1.el8 RHSA-2023:0540

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 influxdb 2.7.3-3 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling dynamic-localpv-provisioner 3.4.1-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/Masterminds/goutils < 1.1.1 1.1.1 GHSA-xg2h-wx96-xgxr

Advisories 3

References