Skip to main content
No exploitation reportedFix available

CVE-2021-4238

No exploitation reported by the sources we read.

  • Published2022-12-27
  • Fixed in1.1.1
  • WeaknessCWE-331

Am I 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
  1. 2022-12-2722:15CVE publishedNVD

Versions per branch

NVD · OSV
Goutils project goutils
BranchAffectedFixed in
1.1< 1.1.11.1.1

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 affected

    https://pkg.go.dev

    Affected
    • < 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

  • CVE-2021-4238 Red Hat Product Security122 products fixed · 25 known affected

    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

  • RHSA-2023:3742 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.13.0 security and bug fix update

  • RHSA-2023:1326 Red Hat Product Security10 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.13.0 security update

  • RHSA-2023:1393 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.10.55 security update

  • RHSA-2023:1297 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.11.32 security and extras update

  • RHSA-2023:1270 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.12.8 security update

18 more advisories

Full record on NVD

Fix

  1. Update Goutils project goutils to 1.1.1
  2. 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…
  3. 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…
  4. 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…
  5. 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…
  6. 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…
  7. 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

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2021-4238 actively exploited?

Active exploitation of CVE-2021-4238 has not been confirmed. Its EPSS score was 1.4% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-4238?

CVE-2021-4238 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.

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

Sources for this record