Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Insufficient randomness in github.com/Masterminds/goutils

cve-program · severity unknownEUVD CVSS 3.1 9.1 CVSS 3.1 · [email protected] · Primary 9.1 CRITICALCVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary 9.1 CRITICALCVSS_V3 Publisher rating CRITICALFixed by github.com/Masterminds/goutils 1.1.1Publisher rating LOWFixed by github.com/Masterminds/goutils 1.1.1osv · severity unknownFixed by github.com/Masterminds/goutils 1.1.1KEV status unknown

cve-program · CVE-2021-4238

Published

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.

Read the publisher's advisory

euvd · EUVD-2022-7482

Published

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.

Read the publisher's advisory

nvd · CVE-2021-4238

Published

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.

Read the publisher's advisory

osv · GHSA-3839-6r69-m497

Withdrawn

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-xg2h-wx96-xgxr. This link is maintained to preserve external references. ## Original 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.

Read the publisher's advisory

osv · GHSA-xg2h-wx96-xgxr

Published

### Impact A security-sensitive bug was discovered by Open Source Developer *Erik Sundell of Sundell Open Source Consulting AB*. The functions `RandomAlphaNumeric(int)` and `CryptoRandomAlphaNumeric(int)` are not as random as they should be. Small values of `int` in the functions above will return a smaller subset of results than they should. For example, `RandomAlphaNumeric(1)` will always return a digit in the 0-9 range, while `RandomAlphaNumeric(4)` will return around ~7 million of the ~13M possible permutations. This is considered a security release because programs that rely upon random generators for passwords are at an increased risk of brute force-style password guessing. There is also a higher probability of collision. The problem was the result of a mistaken regular expression that only accepted random strings if they contained a digit from `[0-9]`. That restriction has been removed. ### Patches This issue has been corrected in v1.1.1. ### Workarounds If you cannot upgrade to v1.1.1, you can work around the issue by calling `RandomAlphaNumericCustom(N, true, true)`|`CryptoRandomAlphaNumericCustom(N, true, true)` instead. (Where `N` is the desired length, and `true` is the literal boolean `true`.)

Read the publisher's advisory

osv · GO-2022-0411

Published

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2021-4238

Published

github.com/Masterminds/goutils

https://pkg.go.dev

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "github.com/Masterminds/goutils",
                    "product": "github.com/Masterminds/goutils",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "github.com/Masterminds/goutils",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.1.1",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "programRoutines": [
                        {
                            "name": "RandomAlphaNumeric"
                        },
                        {
                            "name": "CryptoRandomAlphaNumeric"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2022-7482

Published

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Dec 27, 2022, 9:13:50 PM

dateUpdated: Apr 11, 2025, 4:17:46 PM

26 related source bulletins · separate from aliases

RHSA-2023:1159: Red Hat Security Advisory: OpenShift Container Platform 4.11.31 security and extras update

CVE-2021-4238

RHSA-2023:1170: Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.12.1 security bug fix update

CVE-2021-4238

RHSA-2023:0540: Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.1.6 security update

CVE-2021-4238

RHSA-2023:0565: Red Hat Security Advisory: OpenShift Container Platform 4.11.26 security update

CVE-2021-4238

RHSA-2023:0542: Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.3.1 Containers security update

CVE-2021-4238 · CVE-2022-2879 · CVE-2022-2880 · CVE-2022-3962 · CVE-2022-27664 · CVE-2022-32189 · CVE-2022-39278 · CVE-2022-41715

RHSA-2023:0569: Red Hat Security Advisory: OpenShift Container Platform 4.12.2 security update

CVE-2021-4235 · CVE-2021-4238

WID-SEC-W-2023-0224: Red Hat OpenShift: Mehrere Schwachstellen ermöglichen Umgehen von Sicherheitsvorkehrungen

CVE-2021-4238 · CVE-2022-46174

RHSA-2023:0802: Red Hat Security Advisory: Red Hat OpenShift GitOps security update

CVE-2021-4238 · CVE-2022-3064 · CVE-2023-23947

RHSA-2023:0770: Red Hat Security Advisory: OpenShift Container Platform 4.12.4 security update

CVE-2021-4238

RHSA-2023:1270: Red Hat Security Advisory: OpenShift Container Platform 4.12.8 security update

CVE-2021-4238

RHSA-2023:1297: Red Hat Security Advisory: OpenShift Container Platform 4.11.32 security and extras update

CVE-2021-4238

RHSA-2023:0728: Red Hat Security Advisory: OpenShift Container Platform 4.12.3 security update

CVE-2021-4238 · CVE-2022-41717

RHSA-2023:0804: Red Hat Security Advisory: Red Hat OpenShift GitOps security update

CVE-2021-4238 · CVE-2022-3064 · CVE-2023-23947

RHSA-2023:1393: Red Hat Security Advisory: OpenShift Container Platform 4.10.55 security update

CVE-2021-4238

RHSA-2023:0449: Red Hat Security Advisory: OpenShift Container Platform 4.12.1 security update

CVE-2021-4238

RHSA-2023:0774: Red Hat Security Advisory: OpenShift Container Platform 4.11.28 security update

CVE-2021-4238 · CVE-2021-38561 · CVE-2022-41717

RHSA-2023:0899: Red Hat Security Advisory: OpenShift Container Platform 4.10.53 bug fix and security update

CVE-2021-4238 · CVE-2022-3064 · CVE-2022-41717

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

CVE-2021-4238

RHSA-2023:1326: Red Hat Security Advisory: OpenShift Container Platform 4.13.0 security update

CVE-2021-4235 · CVE-2021-4238 · CVE-2021-20329 · CVE-2021-38561 · CVE-2022-21698 · CVE-2022-23525 · CVE-2022-23526 · CVE-2022-27191 · CVE-2022-41316 · CVE-2022-41717 · CVE-2022-41721 · CVE-2022-41723 · CVE-2022-41724 · CVE-2022-41725 · CVE-2022-46146 · CVE-2023-0620 · CVE-2023-0665 · CVE-2023-25000 · CVE-2023-25165 · CVE-2023-25173 · CVE-2023-25809 · CVE-2023-27561 · CVE-2023-28642 · CVE-2023-30841

RHSA-2023:0574: Red Hat Security Advisory: OpenShift Container Platform 4.9.55 security update

CVE-2021-4238 · CVE-2022-41912 · CVE-2023-0296

RHSA-2023:1154: Red Hat Security Advisory: OpenShift Container Platform 4.10.54 security update

CVE-2021-4238 · CVE-2022-41717

RHSA-2023:0651: Red Hat Security Advisory: OpenShift Container Platform 4.11.27 security update

CVE-2021-4238

RHSA-2023:3742: Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.13.0 security and bug fix update

CVE-2020-16250 · CVE-2020-16251 · CVE-2021-3765 · CVE-2021-3807 · CVE-2021-4235 · CVE-2021-4238 · CVE-2021-43998 · CVE-2021-44531 · CVE-2021-44532 · CVE-2021-44533 · CVE-2022-2879 · CVE-2022-2880 · CVE-2022-3517 · CVE-2022-21824 · CVE-2022-23540 · CVE-2022-23541 · CVE-2022-27664 · CVE-2022-30635 · CVE-2022-32189 · CVE-2022-32190 · CVE-2022-38149 · CVE-2022-38900 · CVE-2022-41316 · CVE-2022-41715 · CVE-2022-41717 · CVE-2022-41723 · CVE-2022-41724 · CVE-2022-41725 · CVE-2022-46175 · CVE-2023-0620 · CVE-2023-0665 · CVE-2023-24999 · CVE-2023-25000

RHSA-2023:0803: Red Hat Security Advisory: Red Hat OpenShift GitOps security update

CVE-2021-4238 · CVE-2022-3064 · CVE-2023-23947

RHSA-2023:0561: Red Hat Security Advisory: OpenShift Container Platform 4.10.51 security update

CVE-2021-4238

WID-SEC-W-2023-1542: Red Hat OpenShift: Mehrere Schwachstellen

CVE-2015-20107 · CVE-2018-25032 · CVE-2020-10735 · CVE-2020-16250 · CVE-2020-16251 · CVE-2020-17049 · CVE-2021-28861 · CVE-2021-3765 · CVE-2021-3807 · CVE-2021-4231 · CVE-2021-4235 · CVE-2021-4238 · CVE-2021-43519 · CVE-2021-43998 · CVE-2021-44531 · CVE-2021-44532 · CVE-2021-44533 · CVE-2021-44964 · CVE-2021-46828 · CVE-2021-46848 · CVE-2022-0670 · CVE-2022-1271 · CVE-2022-1304 · CVE-2022-1348 · CVE-2022-1586 · CVE-2022-1587 · CVE-2022-21824 · CVE-2022-2309 · CVE-2022-23540 · CVE-2022-23541 · CVE-2022-24903 · CVE-2022-2509 · CVE-2022-26280 · CVE-2022-27664 · CVE-2022-2795 · CVE-2022-2879 · CVE-2022-2880 · CVE-2022-28805 · CVE-2022-29154 · CVE-2022-30635 · CVE-2022-3094 · CVE-2022-31129 · CVE-2022-32189 · CVE-2022-32190 · CVE-2022-33099 · CVE-2022-3358 · CVE-2022-34903 · CVE-2022-3515 · CVE-2022-3517 · CVE-2022-35737 · CVE-2022-36227 · CVE-2022-3715 · CVE-2022-3736 · CVE-2022-37434 · CVE-2022-38149 · CVE-2022-3821 · CVE-2022-38900 · CVE-2022-3924 · CVE-2022-40023 · CVE-2022-40303 · CVE-2022-40304 · CVE-2022-40897 · CVE-2022-41316 · CVE-2022-41715 · CVE-2022-41717 · CVE-2022-41723 · CVE-2022-41724 · CVE-2022-41725 · CVE-2022-42010 · CVE-2022-42011 · CVE-2022-42012 · CVE-2022-42898 · CVE-2022-42919 · CVE-2022-43680 · CVE-2022-4415 · CVE-2022-45061 · CVE-2022-45873 · CVE-2022-46175 · CVE-2022-47024 · CVE-2022-47629 · CVE-2022-48303 · CVE-2022-48337 · CVE-2022-48338 · CVE-2022-48339 · CVE-2023-0361 · CVE-2023-0620 · CVE-2023-0665 · CVE-2023-22809 · CVE-2023-24329 · CVE-2023-2491 · CVE-2023-24999 · CVE-2023-25000 · CVE-2023-25136

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2021-4238

Published

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Modified

Weakness classifications: CWE-331

Original publisher date fields

published: 2022-12-27T22:15:12.073

lastModified: 2026-06-17T04:19:19.660

1 source CPE criteria · context only
  • cpe:2.3:a:goutils_project:goutils:*:*:*:*:*:go:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-3839-6r69-m497

Withdrawn

github.com/Masterminds/goutils

Go

SEMVER · introduced 0 → fixed 1.1.1

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-xg2h-wx96-xgxr

Published

github.com/Masterminds/goutils

Go

SEMVER · introduced 0 → fixed 1.1.1

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GO-2022-0411

Published

github.com/Masterminds/goutils

Go

SEMVER · introduced 0 → fixed 1.1.1

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 19 Nov 04:49 UTC · 273 of 275 readable · 269 fully read · documentation 469/469 current