Insufficient randomness in github.com/Masterminds/goutils
Exploitation and risk
Source statusCISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.
Which CVEs have scores here?
This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.
No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.
cve-program · CVE-2021-4238
PublishedRandomly-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.
- Source published
- 27 Dec 2022 21:13:50 UTC
- Source modified
- 11 Apr 2025 16:17:46 UTC
- Saved here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
Source: cve-program · CVE Program Terms of Use. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
euvd · EUVD-2022-7482
PublishedRandomly-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.
Additional publisher context
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
- Source published
- Dec 27, 2022, 9:13:50 PM (timezone not stated)
- Source modified
- Apr 11, 2025, 4:17:46 PM (timezone not stated)
- Saved here
- 18 Nov 2026 01:44:03 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
EUVD CVSS 3.1 · 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
nvd · CVE-2021-4238
PublishedRandomly-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.
Additional publisher context
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.
- Source published
- 27 Dec 2022 22:15:12 UTC
- Source modified
- 17 Jun 2026 04:19:19 UTC
- Saved here
- 24 Oct 2026 19:17:31 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
Source: nvd · NIST NVD usage terms; underlying source attribution retained. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · [email protected] · Primary · 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary · 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
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.
- Source published
- 28 Dec 2022 00:30:23 UTC
- Source modified
- 10 Sep 2026 03:49:50 UTC
- Saved here
- 24 Oct 2026 13:19:41 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS_V3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Publisher rating · CRITICAL
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`.)
- Source published
- 21 May 2021 16:26:06 UTC
- Source modified
- 10 Sep 2026 03:49:15 UTC
- Saved here
- 24 Oct 2026 13:19:41 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
Publisher rating · LOW
osv · GO-2022-0411
PublishedRandomly-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.
- Source published
- 1 Jul 2022 20:08:24 UTC
- Source modified
- 4 Feb 2026 03:14:48 UTC
- Saved here
- 24 Oct 2026 13:19:41 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.