cve.bz

CVE-2021-4238 goutils project goutils: Insufficient Entropy

9.1 criticalExploit referenceEPSS 1.4%Fix available

Critical (9.1) in goutils project goutils. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/Masterminds/goutils 1.1.1.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-04-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-331 Insufficient Entropy
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4238 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4238?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4238?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4238 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
github.com/Masterminds/goutilsbefore 1.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xg2h-wx96-xgxrGogithub.com/Masterminds/goutils<1.1.11.1.1
GO-2022-0411Gogithub.com/Masterminds/goutils<1.1.11.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moregolang-github-masterminds-goutilsno fix listedUBUNTU-CVE-2021-4238
Red Hatservice_mesh:2.1::el8servicemesh, servicemesh-cni, servicemesh-operator and 2 more0:2.1.6-1.el8RHSA-2023:0540
Azure Linux3influxdb2.7.3-3AZL-41275

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
OpenShift Service Mesh 2.1servicemesh-0:2.1.6-1.el8Fixed 2023-01-30RHSA-2023:0540
OpenShift Service Mesh 2.1servicemesh-operator-0:2.1.6-1.el8Fixed 2023-01-30RHSA-2023:0540
Red Hat OpenShift Container Platform 4.10openshift4/ose-cluster-network-operator:v4.10.0-202301310115.p0.gdc0a59a.assembly.streamFixed 2023-02-08RHSA-2023:0561
Red Hat OpenShift Container Platform 4.10openshift4/ose-installer:v4.10.0-202302161028.p0.g8862860.assembly.streamFixed 2023-03-01RHSA-2023:0899
Red Hat OpenShift Container Platform 4.10openshift4/ose-machine-config-operator:v4.10.0-202303032215.p0.ga21b2b8.assembly.streamFixed 2023-03-16RHSA-2023:1154
Red Hat OpenShift Container Platform 4.10openshift4/ose-kubernetes-nmstate-handler-rhel8:v4.10.0-202303162241.p0.g68b1665.assembly.streamFixed 2023-03-29RHSA-2023:1393
Red Hat OpenShift Container Platform 4.11openshift4/ose-cluster-baremetal-operator-rhel8:v4.11.0-202301191245.p0.g4ffdd2f.assembly.streamFixed 2023-02-07RHSA-2023:0565
Red Hat OpenShift Container Platform 4.11openshift4/ose-image-customization-controller-rhel8:v4.11.0-202301252336.p0.ge0e3979.assembly.streamFixed 2023-02-07RHSA-2023:0565
Red Hat OpenShift Container Platform 4.11openshift4/ose-machine-config-operator:v4.11.0-202302071115.p0.gc101063.assembly.streamFixed 2023-02-15RHSA-2023:0651
Red Hat OpenShift Container Platform 4.11openshift4/ose-installer:v4.11.0-202302130454.p0.g59d1196.assembly.streamFixed 2023-02-21RHSA-2023:0774
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Not affected
Cryostat 2cryostat/cryostat-rhel8-operatorNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/lokistack-gateway-rhel8Not affected
OpenShift Developer Tools and ServiceshelmAffected
OpenShift Developer Tools and Servicesjenkins-operator-containerAffected
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Fix deferred
OpenShift Serverlessopenshift-serverless-1/ingress-rhel8-operatorFix deferred
OpenShift Serverlessopenshift-serverless-1-knative-client-plugin-event-sender-rhel8-containerFix deferred
OpenShift Serverlessopenshift-serverless-1/serving-queue-rhel8Fix deferred
121 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4238.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON