CVE-2021-4238
No exploitation reported by the sources we read.
- Published2022-12-27
- Fixed in1.1.1
- WeaknessCWE-331
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-12-2722:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.1 | < 1.1.1 | 1.1.1 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As Go, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- github.com/Masterminds/goutilsother versions: not affectedAffected
- < 1.1.1fixed in 1.1.1semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-06-12
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- argo-eventsCleanStartall versions · fixed in 1.6.3-r1
- dynamic-localpv-provisionerWolfiall versions · fixed in 3.4.1-r3
- dynamic-localpv-provisionerChainguardall versions · fixed in 3.4.1-r3
- dynamic-localpv-provisioner-fipsChainguardall versions · fixed in 3.5.0-r0
- golang-github-masterminds-goutilsUbuntu:26.10all versions · no fixed version listed
- golang-github-masterminds-goutilsUbuntu:26.04:LTSall versions · no fixed version listed
- golang-github-masterminds-goutilsUbuntu:25.10all versions · no fixed version listed
- golang-github-masterminds-goutilsUbuntu:24.04:LTSall versions · no fixed version listed
3 more package ranges on OSV.dev
Vendor advisories
goutils: RandomAlphaNumeric and CryptoRandomAlphaNumeric are not as random as they should be
helm.src as a component of OpenShift Developer Tools and Services · jenkins-operator-container as a component of OpenShift Developer Tools and Services · openshift-serverless-1-knative-client-plugin-event-sender-rhel8-container as a component of OpenShift Serverless · +22 more
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.13.0 security and bug fix update
Red Hat Security Advisory: OpenShift Container Platform 4.13.0 security update
Red Hat Security Advisory: OpenShift Container Platform 4.10.55 security update
Red Hat Security Advisory: OpenShift Container Platform 4.11.32 security and extras update
Red Hat Security Advisory: OpenShift Container Platform 4.12.8 security update
18 more advisories
Fix
- Update Goutils project goutils to 1.1.1
- Vendor fix Red Hat Product Security RHSA-2023:3742 · 4 productsThese updated images include numerous enhancements and bug fixes. Space precludes documenting all of these changes in this advisory. Users are directed to the Red Hat OpenShift Data Foundation Release Notes for information on the most significant of these changes: https://access.redhat.com/documen…
- Vendor fix Red Hat Product Security RHSA-2023:1326 · 10 productsFor OpenShift Container Platform 4.13 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.13/release_notes/ocp-4-1…
- Vendor fix Red Hat Product Security RHSA-2023:1393 · 4 productsFor OpenShift Container Platform 4.10 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.10/release_notes/ocp-4-1…
- Vendor fix Red Hat Product Security RHSA-2023:1297 · 4 productsFor OpenShift Container Platform 4.11 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.11/release_notes/ocp-4-1…
- Vendor fix Red Hat Product Security RHSA-2023:1270 · 4 productsFor OpenShift Container Platform 4.12 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.12/release_notes/ocp-4-1…
- Vendor fix Red Hat Product Security RHSA-2023:1154 · 4 productsFor OpenShift Container Platform 4.10, see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.10/release_notes/ocp-4-…
Advisories and patches
- github.comPatch
- pkg.go.devPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-04-11
- CISA-ADPCVSS 3.19.12025-04-11
- NVDCVSS 3.19.1read 2026-10-23
- NVDweakness (CWE)CWE-331read 2026-10-23
- FIRST EPSSEPSS score1.4 %2026-11-18
- OSVaffected packages—
- GitHub AdvisoriesadvisoryLOW2021-05-21
Identifiers
- AZL-41275same flawAzure Linux · MIT
- CGA-3f45-9j5x-95w7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-cq2r-f7hr-xm7xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gc3j-pqgh-rcxhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-pf5v-h6f6-m3phsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2022-7482same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-xg2h-wx96-xgxrsame flawGitHub Advisory Database · CC-BY-4.0
- GO-2022-0411same flawGo Vulnerability Database · CC-BY-4.0
- RHSA-2023:0540advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Published
- 2022-12-27
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-xg2h-wx96-xgxr
Frequently asked questions
What is CVE-2021-4238?
Is CVE-2021-4238 actively exploited?
What is the CVSS score for CVE-2021-4238?
Running goutils? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-xg2h-wx96-xgxr
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0