CVE-2021-4238
Public on
Last Modified:
Description
A flaw was found in goutils where randomly generated alphanumeric strings contain significantly less entropy than expected. Both the RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always return strings containing at least one digit from 0 to 9. This issue significantly reduces the amount of entropy generated in short strings by these functions.
Additional Information
- This content is not included.Bugzilla 2156729: goutils: RandomAlphaNumeric and CryptoRandomAlphaNumeric are not as random as they should be
- Content from cwe.mitre.org is not included.CWE-331: Insufficient Entropy
- FAQ: Frequently asked questions about CVE-2021-4238
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2021-4238
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2021-4238
Content from github.com is not included.https://github.com/advisories/GHSA-3839-6r69-m497
Content from pkg.go.dev is not included.https://pkg.go.dev/vuln/GO-2022-0411
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Cryostat 2 | cryostat/cryostat-rhel8-operator | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/logging-loki-rhel9 | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/lokistack-gateway-rhel8 | Not affected | |
| OpenShift Developer Tools and Services | helm | Affected | |
| OpenShift Developer Tools and Services | jenkins-operator-container | Affected | |
| OpenShift Serverless | openshift-serverless-1-knative-client-plugin-event-sender-rhel8-container | Fix deferred | |
| OpenShift Serverless | openshift-serverless-1/client-kn-rhel8 | Fix deferred | |
| OpenShift Serverless | openshift-serverless-1/ingress-rhel8-operator | Fix deferred | |
| OpenShift Serverless | openshift-serverless-1/serving-queue-rhel8 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/istio-cni-rhel8 | Not affected | |
| OpenShift Service Mesh 2.1 | servicemesh | Fixed | RHSA-2023:0540 |
| OpenShift Service Mesh 2.1 | servicemesh-operator | Fixed | RHSA-2023:0540 |
| RHODF-4.12-RHEL-8 | odf4/mcg-rhel8-operator | Fixed | RHSA-2023:1170 |
| RHODF-4.13-RHEL-9 | odf4/mcg-rhel9-operator | Fixed | RHSA-2023:3742 |
| Red Hat 3scale API Management Platform 2 | 3scale-operator-container | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | acm-governance-policy-framework-addon-container/acm-governance-policy-framework-addon-container | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | acm-multicluster-globalhub-agent-container/acm-multicluster-globalhub-agent-container | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | acm-search-v2-operator-container/acm-search-v2-operator-container | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-cluster-proxy-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-governance-policy-addon-controller-rhel9 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-grafana-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-search-indexer-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-volsync-addon-controller-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/cert-policy-controller-rhel9 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/config-policy-controller-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/governance-policy-propagator-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/governance-policy-spec-sync-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/governance-policy-status-sync-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/governance-policy-template-sync-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/iam-policy-controller-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/multicluster-operators-application-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/multicluster-operators-channel-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/multicluster-operators-subscription-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/multiclusterhub-repo-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/multiclusterhub-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/rbac-query-proxy-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-aggregator-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-collector-rhel9 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-rhel8 | Not affected | |
| Red Hat Advanced Cluster Security 3 | advanced-cluster-security/rhacs-main-rhel8 | Not affected | |
| Red Hat Advanced Cluster Security 3 | advanced-cluster-security/rhacs-scanner-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 1.2 | helm | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift-compliance-openscap-container | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-alibaba-cloud-controller-manager-rhel9 | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-metering-ansible-operator | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-metering-helm-container-rhel8 | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-ptp | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-ptp-operator | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ztp-site-generate-rhel8 | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift-security-profiles-operator-container/openshift-security-profiles-operator-container | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift-tech-preview/metallb-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4-wincw/windows-machine-config-rhel8-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/bare-metal-event-relay-operator-bundle | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/bare-metal-event-relay-rhel8-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/cnf-tests-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/kubernetes-nmstate-rhel9-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/metallb-rhel8-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/oc-mirror-plugin-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-api-server-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-csr-approver-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-aws-cluster-api-controllers-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-azure-cluster-api-controllers-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cluster-capi-rhel9-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cluster-node-tuning-rhel9-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cluster-platform-operators-manager-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-docker-builder | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-gcp-cluster-api-controllers-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-gcp-filestore-csi-driver-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-grafana | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-hypershift-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-ibmcloud-cluster-api-controllers-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-local-storage-rhel9-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-machine-api-provider-openstack-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-olm-rukpak-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-openshift-apiserver-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-openshift-controller-manager-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-operator-marketplace | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-operator-sdk-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-sriov-network-webhook | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-vsphere-cluster-api-controllers-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ptp-must-gather-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/special-resource-rhel8-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/topology-aware-lifecycle-manager-rhel8-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | ose-ingress-node-firewall-container/ose-ingress-node-firewall-container | Not affected | |
| Red Hat OpenShift Container Platform 4 | poison-pill-container/poison-pill-container | Not affected | |
| Red Hat OpenShift Container Platform 4 | redhat/redhat-operator-index | Not affected | |
| Red Hat OpenShift Container Platform 4.10 | openshift4/ose-cluster-network-operator | Fixed | RHSA-2023:0561 |
| Red Hat OpenShift Container Platform 4.10 | openshift4/ose-installer | Fixed | RHSA-2023:0899 |
| Red Hat OpenShift Container Platform 4.10 | openshift4/ose-machine-config-operator | Fixed | RHSA-2023:1154 |
| Red Hat OpenShift Container Platform 4.10 | openshift4/ose-kubernetes-nmstate-handler-rhel8 | Fixed | RHSA-2023:1393 |
| Red Hat OpenShift Container Platform 4.11 | openshift4/ose-cluster-baremetal-operator-rhel8 | Fixed | RHSA-2023:0565 |
| Red Hat OpenShift Container Platform 4.11 | openshift4/ose-image-customization-controller-rhel8 | Fixed | RHSA-2023:0565 |
| Red Hat OpenShift Container Platform 4.11 | openshift4/ose-machine-config-operator | Fixed | RHSA-2023:0651 |
| Red Hat OpenShift Container Platform 4.11 | openshift4/ose-installer | Fixed | RHSA-2023:0774 |
| Red Hat OpenShift Container Platform 4.11 | openshift4/dpu-network-rhel8-operator | Fixed | RHSA-2023:1159 |
| Red Hat OpenShift Container Platform 4.11 | openshift4/ose-kubernetes-nmstate-handler-rhel8 | Fixed | RHSA-2023:1297 |
| Red Hat OpenShift Container Platform 4.12 | openshift4/ose-image-customization-controller-rhel8 | Fixed | RHSA-2023:0449 |
| Red Hat OpenShift Container Platform 4.12 | openshift4/ose-machine-config-operator | Fixed | RHSA-2023:0569 |
| Red Hat OpenShift Container Platform 4.12 | openshift4/ose-installer | Fixed | RHSA-2023:0728 |
| Red Hat OpenShift Container Platform 4.12 | openshift4/dpu-network-rhel8-operator | Fixed | RHSA-2023:0770 |
| Red Hat OpenShift Container Platform 4.12 | openshift4/ose-kubernetes-nmstate-handler-rhel8 | Fixed | RHSA-2023:1270 |
| Red Hat OpenShift Container Platform 4.13 | openshift4/ose-image-customization-controller-rhel8 | Fixed | RHSA-2023:1326 |
| Red Hat OpenShift Container Platform 4.13 | openshift4/ose-installer | Fixed | RHSA-2023:1326 |
| Red Hat OpenShift Container Platform 4.13 | openshift4/ose-machine-config-operator | Fixed | RHSA-2023:1326 |
| Red Hat OpenShift Container Platform 4.9 | openshift4/ose-cluster-network-operator | Fixed | RHSA-2023:0574 |
| Red Hat OpenShift Container Platform Assisted Installer 1 | rhai-tech-preview/assisted-installer-agent-rhel8 | Affected | |
| Red Hat OpenShift Container Platform Assisted Installer 1 | rhai-tech-preview/assisted-installer-rhel8 | Affected | |
| Red Hat OpenShift Dev Spaces | devspaces/traefik-rhel8 | Affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/gitops-rhel8-operator | Affected | |
| Red Hat OpenShift GitOps 1.5 | openshift-gitops-1/applicationset-rhel8 | Fixed | RHSA-2023:0804 |
| Red Hat OpenShift GitOps 1.5 | openshift-gitops-1/argocd-rhel8 | Fixed | RHSA-2023:0804 |
| Red Hat OpenShift GitOps 1.5 | openshift-gitops-1/dex-rhel8 | Fixed | RHSA-2023:0804 |
| Red Hat OpenShift GitOps 1.5 | openshift-gitops-1/gitops-rhel8-operator | Fixed | RHSA-2023:0804 |
| Red Hat OpenShift GitOps 1.5 | openshift-gitops-1/kam-delivery-rhel8 | Fixed | RHSA-2023:0804 |
| Red Hat OpenShift GitOps 1.6 | openshift-gitops-1/argocd-rhel8 | Fixed | RHSA-2023:0802 |
| Red Hat OpenShift GitOps 1.6 | openshift-gitops-1/dex-rhel8 | Fixed | RHSA-2023:0802 |
| Red Hat OpenShift GitOps 1.6 | openshift-gitops-1/gitops-rhel8-operator | Fixed | RHSA-2023:0802 |
| Red Hat OpenShift GitOps 1.6 | openshift-gitops-1/kam-delivery-rhel8 | Fixed | RHSA-2023:0802 |
| Red Hat OpenShift GitOps 1.7 | openshift-gitops-1/argocd-rhel8 | Fixed | RHSA-2023:0803 |
| Red Hat OpenShift GitOps 1.7 | openshift-gitops-1/dex-rhel8 | Fixed | RHSA-2023:0803 |
| Red Hat OpenShift GitOps 1.7 | openshift-gitops-1/gitops-rhel8-operator | Fixed | RHSA-2023:0803 |
| Red Hat OpenShift GitOps 1.7 | openshift-gitops-1/kam-delivery-rhel8 | Fixed | RHSA-2023:0803 |
| Red Hat OpenShift Service Mesh 2.3 for RHEL 8 | openshift-service-mesh/istio-rhel8-operator | Fixed | RHSA-2023:0542 |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/cluster-network-addons-operator | Affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubernetes-nmstate-handler-rhel8 | Affected | |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8/osp-director-agent | Not affected | |
| Red Hat Openshift Container Storage 4 | ocs4/mcg-rhel8-operator | Affected | |
| Red Hat Openshift Container Storage 4 | ocs4/ocs-rhel8-operator | Not affected | |
| Red Hat Openshift Container Storage 4 | ocs4/rook-ceph-rhel8-operator | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/odf-multicluster-rhel9-operator | Affected | |
| Red Hat Openshift Data Foundation 4 | odf4/odf-rhel9-operator | Affected | |
| Red Hat Openshift Data Foundation 4 | odf4/ocs-rhel9-operator | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/odf-csi-addons-sidecar-rhel8 | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/odf-lvm-rhel8-operator | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/odr-rhel9-operator | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/rook-ceph-rhel9-operator | Not affected | |
| Red Hat Openshift Sandboxed Containers | openshift-sandboxed-containers/osc-rhel8-operator | Affected | |
| Red Hat Quay 3 | quay/quay-bridge-operator-rhel8 | Affected | |
| Self Node Remediation Operator | workload-availability/self-node-remediation-rhel8-operator | Not affected | |
| cert-manager Operator for Red Hat OpenShift | cert-manager/jetstack-cert-manager-rhel9 | Not affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 7 | 9.1 |
| Attack Vector | Network | Network |
| Attack Complexity | High | Low |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | High | High |
| Integrity Impact | Low | None |
| Availability Impact | Low | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat CVSS v3 Score Explanation
The location of the weakened character within a secret is not known in advance. Additionally for an exploitation opportunity to exist, a Red Hat offering must utilize the vulnerable function to create a small secret, which goes against basic security practices. Together these conditions make the attack complexity high.
Availability is low because any full denial of service would be dependent on how the vulnerable functions were used.
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
Not sure what something means? Check out our Security Glossary.