CVE-2021-38297
Public on
Last Modified:
Description
A flaw was found in golang. This vulnerability can only be triggered when invoking functions from vulnerable WASM (WebAssembly) Modules. Go can be compiled to WASM. If the product or service doesn't use WASM functions, it is not affected, although it uses golang.
Statement
-
Although this flaw has a higher CVSS score, in a strict sense, the flaw could possibly enable code exec, either Red Hat products don't use WASM, or don't expose WASM functions in a way that makes code exec possible. For this reason, the Red Hat impact for this flaw is Moderate.
-
Because the flawed code is not actually used in Service Telemetry Framework1.3, no update will be provided at this time for STF's sg-core-container.
*For a WASM Module to be vulnerable, it needs to be built using GOARCH=wasm GOOS=js (build options for WebAssembly).
*CVE-2021-38297 is a vulnerability that affects Go (golang). It has been fixed in versions 1.17.2 and 1.16.9.
*CVE-2021-38297 does not affect the OpenShift Container Platform (OCP) because it does not build anything with GOARCH=wasm GOOS=js. Hence, OCP-based services are not affected either.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Additional Information
- This content is not included.Bugzilla 2012887: golang: Command-line arguments may overwrite global data
- Content from cwe.mitre.org is not included.CWE-20: Improper Input Validation
- FAQ: Frequently asked questions about CVE-2021-38297
- 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-38297
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2021-38297
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Distributed Tracing Jaeger 1 | distributed-tracing/jaeger-all-in-one-rhel8 | Not affected | |
| Migration Toolkit for Containers | rhmtc/openshift-migration-rhel8-operator | Not affected | |
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-controller-rhel9 | Not affected | |
| OpenShift Serverless | CLI | Affected | |
| OpenShift Serverless | knative-eventing | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh | Not affected | |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Not affected | |
| OpenShift Service Mesh 2.0 | servicemesh-operator | Not affected | |
| OpenShift Service Mesh 2.0 | servicemesh-prometheus | Not affected | |
| Openshift Serveless 1.20 | openshift-serverless-1-tech-preview/eventing-kafka-broker-controller-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1-tech-preview/eventing-kafka-broker-dispatcher-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1-tech-preview/eventing-kafka-broker-receiver-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1-tech-preview/eventing-kafka-broker-webhook-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/client-kn-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-controller-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-in-memory-channel-controller-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-mtbroker-filter-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-mtbroker-ingress-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-mtchannel-broker-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-mtping-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-storage-version-migration-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-sugar-controller-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/eventing-webhook-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/ingress-rhel8-operator | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/kn-cli-artifacts-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/knative-rhel8-operator | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/kourier-control-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/net-istio-controller-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/net-istio-webhook-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serverless-operator-bundle | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serverless-rhel8-operator | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-activator-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-autoscaler-hpa-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-autoscaler-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-controller-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-domain-mapping-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-domain-mapping-webhook-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-queue-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-storage-version-migration-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/serving-webhook-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serveless 1.20 | openshift-serverless-1/svls-must-gather-rhel8 | Fixed | RHSA-2022:0434 |
| Openshift Serverless 1 on RHEL 8 | openshift-serverless-clients | Fixed | RHSA-2022:0432 |
| Red Hat Advanced Cluster Security 3 | rox | Affected | |
| Red Hat Ceph Storage 2 | golang | Out of support scope | |
| Red Hat Ceph Storage 2 | grafana | Out of support scope | |
| Red Hat Ceph Storage 3 | golang | Out of support scope | |
| Red Hat Ceph Storage 3 | golang-github-prometheus-node_exporter | Out of support scope | |
| Red Hat Ceph Storage 3 | grafana | Out of support scope | |
| Red Hat Ceph Storage 3 | grafana-container | Out of support scope | |
| Red Hat Ceph Storage 4 | rhceph/rhceph-4-dashboard-rhel8 | Not affected | |
| Red Hat Ceph Storage 5 | rhceph/rhceph-5-dashboard-rhel8 | Not affected | |
| Red Hat Enterprise Linux 7 | buildah | Not affected | |
| Red Hat Enterprise Linux 7 | golang | Out of support scope | |
| Red Hat Enterprise Linux 8 | go-toolset:rhel8 | Fixed | RHSA-2022:1819 |
| Red Hat Enterprise Linux 8 | container-tools:1.0/buildah | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/buildah | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/buildah | Not affected | |
| Red Hat Enterprise Linux 8 | git-lfs | Not affected | |
| Red Hat Enterprise Linux 9 | buildah | Not affected | |
| Red Hat Enterprise Linux 9 | git-lfs | Not affected | |
| Red Hat Enterprise Linux 9 | golang | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift-clients | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-grafana | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-installer | Not affected | |
| Red Hat OpenShift Virtualization 2 | bridge-marker-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | cluster-network-addons-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | cnv-containernetworking-plugins-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | cnv-must-gather-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | container-native-virtualization/kubevirt-cpu-node-labeller | Not affected | |
| Red Hat OpenShift Virtualization 2 | container-native-virtualization/vm-import-controller | Not affected | |
| Red Hat OpenShift Virtualization 2 | container-native-virtualization/vm-import-controller-rhel8 | Not affected | |
| Red Hat OpenShift Virtualization 2 | hostpath-provisioner-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | hostpath-provisioner-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | hyperconverged-cluster-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | hyperconverged-cluster-webhook-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | kubemacpool-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | kubernetes-nmstate-handler-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | kubevirt | Not affected | |
| Red Hat OpenShift Virtualization 2 | kubevirt-ssp-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | kubevirt-template-validator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | kubevirt-vmware-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | node-maintenance-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | ovs-cni-marker-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | ovs-cni-plugin-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-api-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-apiserver-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-cloner-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-controller-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-importer-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-uploadproxy-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-uploadserver-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-controller-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-handler-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-launcher-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | vm-import-operator-container | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/bridge-marker | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/cluster-network-addons-operator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/cnv-containernetworking-plugins | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/cnv-must-gather-rhel8 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/hostpath-provisioner-rhel8 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/hostpath-provisioner-rhel8-operator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/hyperconverged-cluster-operator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/hyperconverged-cluster-webhook-rhel8 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubemacpool | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubernetes-nmstate-handler-rhel8 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-ssp-operator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-template-validator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-vmware | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/node-maintenance-operator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/ovs-cni-marker | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/ovs-cni-plugin | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-api | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-cdi-apiserver | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-cdi-cloner | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-cdi-controller | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-cdi-importer | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-cdi-operator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-cdi-uploadproxy | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-cdi-uploadserver | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-controller | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-handler | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-launcher | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/virt-operator | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/vm-import-controller-rhel8 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/vm-import-operator-rhel8 | Not affected | |
| Red Hat OpenShift Virtualization 4 | kubevirt | Not affected | |
| Red Hat OpenStack Platform 16.1 | etcd | Not affected | |
| Red Hat OpenStack Platform 16.1 | golang-github-vbatts-tar-split | Not affected | |
| Red Hat OpenStack Platform 16.2 | etcd | Not affected | |
| Red Hat OpenStack Platform 16.2 | golang-github-vbatts-tar-split | Not affected | |
| Red Hat Openshift Container Storage 4 | mcg | Not affected | |
| Red Hat Openshift Container Storage 4 | ocs4/cephcsi-rhel8 | Not affected | |
| Red Hat Openshift Container Storage 4 | ocs4/mcg-rhel8-operator | Not affected | |
| Red Hat Openshift Container Storage 4 | ocs4/ocs-must-gather-rhel8 | Not 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 | mcg | Not affected | |
| Red Hat Openshift Data Foundation 4 | noobaa-operator-container | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/cephcsi-rhel9 | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/ocs-must-gather-rhel8 | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/ocs-rhel9-operator | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/rook-ceph-rhel8-operator | Not affected | |
| Red Hat Quay 3 | quay/clair-rhel8 | Not affected | |
| Red Hat Quay 3 | quay/quay-bridge-operator-rhel8 | Not affected | |
| Red Hat Quay 3 | quay/quay-builder-rhel8 | Not affected | |
| Red Hat Quay 3 | quay/quay-container-security-operator-rhel8 | Not affected | |
| Red Hat Quay 3 | quay/quay-operator-rhel8 | Not affected | |
| Red Hat Quay 3 | quay/quay-rhel8 | Not affected | |
| Red Hat Software Collections | rh-git227-git-lfs | Not affected | |
| Red Hat Storage 3 | etcd | Not affected | |
| Red Hat Storage 3 | golang | Not affected | |
| Red Hat Storage 3 | grafana | Not affected | |
| Red Hat Storage 3 | heketi | Not affected | |
| Red Hat Storage 3 | rhgs3/rhgs-gluster-block-prov-rhel7 | Not affected | |
| Service Telemetry Framework 1.2 for RHEL 8 | smart-gateway-container | Not affected | |
| Service Telemetry Framework 1.2 for RHEL 8 | stf/sg-core-rhel8 | Not affected | |
| Service Telemetry Framework 1.3 for RHEL 8 | stf/sg-core-rhel8 | Will not fix |
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 | 9.8 | 9.8 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | High | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.