CVE-2021-27918
Public on
Last Modified:
Description
An infinite loop vulnerability was found in golang. If an application defines a custom token parser initializing with xml.NewTokenDecoder it is possible for the parsing loop to never return. An attacker could potentially craft a malicious XML document which has an XML element with EOF within it, causing the parsing application to endlessly loop, resulting in a Denial of Service (DoS).
Statement
OpenShift Container Platform (OCP), OpenShift ServiceMesh (OSSM), Red Hat OpenShift Jaeger (RHOSJ) and OpenShift Virtualization all bundle vulnerable versions of the golang standard library (stdlib). However, no component within each product utilizes the function xml.NewTokenDecoder which is a requirement to be vulnerable. Hence, all affected components are marked as "Will not fix". Additionally no OCP container has been listed, as nearly all available containers are compiled with an affected version of Go, but do not utilize the function xml.NewTokenDecoder.
Red Hat Ceph Storage (RHCS), Red Hat Gluster Storage 3 and OpenShift Container Storage 4 also bundles a vulnerable version of golang standard library 'encoding/xml', but does not utilize the function xml.NewTokenDecoder, and hence this issue has been rated as having a security impact of Low.
Additional Information
- This content is not included.Bugzilla 1937901: golang: encoding/xml: infinite loop when using xml.NewTokenDecoder with a custom TokenReader
- Content from cwe.mitre.org is not included.CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
- FAQ: Frequently asked questions about CVE-2021-27918
- 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-27918
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2021-27918
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Distributed Tracing Jaeger 1 | distributed-tracing/jaeger-all-in-one-rhel8 | Will not fix | |
| Distributed Tracing Jaeger 1 | distributed-tracing/jaeger-collector-rhel8 | Will not fix | |
| Distributed Tracing Jaeger 1 | distributed-tracing/jaeger-rhel8-operator | Will not fix | |
| OpenShift Serverless | knative-eventing | Will not fix | |
| OpenShift Serverless | knative-serving | Will not fix | |
| OpenShift Service Mesh 2.0 | servicemesh | Will not fix | |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Will not fix | |
| OpenShift Service Mesh 2.0 | servicemesh-operator | Will not fix | |
| OpenShift Service Mesh 2.0 | servicemesh-prometheus | Will not fix | |
| Openshift Serveless 1.16 | openshift-serverless-1/client-kn-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-controller-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-in-memory-channel-controller-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtbroker-filter-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtbroker-ingress-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtchannel-broker-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtping-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-storage-version-migration-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-sugar-controller-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-webhook-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/ingress-rhel8-operator | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/kn-cli-artifacts-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/knative-rhel8-operator | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/kourier-control-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/net-istio-controller-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/net-istio-webhook-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serverless-operator-bundle | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serverless-rhel8-operator | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-activator-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-autoscaler-hpa-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-autoscaler-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-controller-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-domain-mapping-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-domain-mapping-webhook-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-queue-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-storage-version-migration-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/serving-webhook-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/svls-must-gather-rhel8 | Fixed | RHSA-2021:2705 |
| Openshift Serverless 1 on RHEL 8 | openshift-serverless-clients | Fixed | RHSA-2021:2704 |
| Openshift Serverless 1 on RHEL 8 | openshift-serverless-clients | Fixed | RHSA-2021:3555 |
| Openshift Serverless 1.17 | openshift-serverless-1/client-kn-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-controller-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-in-memory-channel-controller-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-mtbroker-filter-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-mtbroker-ingress-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-mtchannel-broker-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-mtping-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-storage-version-migration-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-sugar-controller-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/eventing-webhook-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/ingress-rhel8-operator | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/kn-cli-artifacts-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/knative-rhel8-operator | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/kourier-control-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/net-istio-controller-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/net-istio-webhook-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serverless-operator-bundle | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serverless-rhel8-operator | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-activator-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-autoscaler-hpa-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-autoscaler-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-controller-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-domain-mapping-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-domain-mapping-webhook-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-queue-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-storage-version-migration-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/serving-webhook-rhel8 | Fixed | RHSA-2021:3556 |
| Openshift Serverless 1.17 | openshift-serverless-1/svls-must-gather-rhel8 | Fixed | RHSA-2021:3556 |
| 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 | Fix deferred | |
| Red Hat Ceph Storage 3 | golang-github-prometheus-node_exporter | Fix deferred | |
| Red Hat Ceph Storage 3 | grafana | Fix deferred | |
| Red Hat Ceph Storage 3 | grafana-container | Fix deferred | |
| Red Hat Ceph Storage 4 | rhceph/rhceph-4-dashboard-rhel8 | Fix deferred | |
| Red Hat Enterprise Linux 7 | golang | Not affected | |
| Red Hat Enterprise Linux 7 | buildah | Out of support scope | |
| Red Hat Enterprise Linux 7 | gcc | Out of support scope | |
| Red Hat Enterprise Linux 7 | gcc-libraries | Out of support scope | |
| Red Hat Enterprise Linux 8 | go-toolset:rhel8 | Fixed | RHSA-2021:3076 |
| 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 | gcc | Not affected | |
| Red Hat Enterprise Linux 8 | gcc-toolset-10-gcc | Not affected | |
| Red Hat Enterprise Linux 8 | gcc-toolset-9-gcc | Not affected | |
| Red Hat Enterprise Linux 9 | buildah | Not affected | |
| Red Hat Enterprise Linux 9 | gcc | Not affected | |
| Red Hat Enterprise Linux 9 | golang | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift | Will not fix | |
| Red Hat OpenShift Container Platform 3.11 | cri-o | Will not fix | |
| Red Hat OpenShift Container Platform 4 | cri-o | Will not fix | |
| Red Hat OpenShift Container Platform 4 | cri-tools | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift-clients | Will not fix | |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/cephcsi-rhel8 | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/mcg-core-rhel8 | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/mcg-rhel8-operator | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/ocs-must-gather-rhel8 | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/ocs-operator-bundle | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/ocs-rhel8-operator | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/rook-ceph-rhel8-operator | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Container Storage 4.8.0 on RHEL-8 | ocs4/volume-replication-rhel8-operator | Fixed | RHBA-2021:3003 |
| Red Hat OpenShift Virtualization 2 | container-native-virtualization/vm-import-controller | Will not fix | |
| Red Hat OpenShift Virtualization 2 | container-native-virtualization/vm-import-controller-rhel8 | Will not fix | |
| Red Hat OpenShift Virtualization 2 | hostpath-provisioner-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | hostpath-provisioner-operator-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | hyperconverged-cluster-operator-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | hyperconverged-cluster-webhook-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | kubevirt-cpu-model-nfd-plugin | Will not fix | |
| Red Hat OpenShift Virtualization 2 | kubevirt-vmware-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | node-maintenance-operator-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-apiserver-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | virt-handler-container | Will not fix | |
| Red Hat OpenShift Virtualization 2 | virt-launcher-container | Will not fix | |
| Red Hat Openshift Container Storage 4 | mcg | Affected | |
| Red Hat Openshift Container Storage 4 | odf4/ocs-rhel9-operator | Affected | |
| Red Hat Storage 3 | grafana | Fix deferred | |
| Red Hat Storage 3 | heketi | Fix deferred | |
| Red Hat Storage 3 | etcd | Not affected | |
| Red Hat Storage 3 | rhgs3/rhgs-gluster-block-prov-rhel7 | Not affected | |
| Red Hat Storage 3 | golang | 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 | 7.5 | 7.5 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | None | None |
| Integrity Impact | None | None |
| Availability Impact | High | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.