CVE-2021-20206
Public on
Last Modified:
Description
An improper limitation of path name flaw was found in containernetworking/cni. When specifying the plugin to load in the type field in the network configuration, it is possible to use special elements such as "../" separators to reference binaries elsewhere on the system. This flaw allows an attacker to execute other existing binaries other than the cni plugins/types, such as reboot. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Statement
OpenShift ServiceMesh (OSSM) does package a vulnerable version of containernetworking/cni, however, the NetworkDefinitionAttachment is defined in code and cannot be easily changed except through a user who has access to the operator namespace such as cluster-admin. As such, for OSSM, the impact is Moderate.
The fix for podman was released as a part of OpenShift 4.8 and is included in future releases.
Additional Information
- This content is not included.Bugzilla 1919391: containernetworking-cni: Arbitrary path injection via type field in CNI configuration
- Content from cwe.mitre.org is not included.CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- FAQ: Frequently asked questions about CVE-2021-20206
- 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-20206
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2021-20206
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| OpenShift Service Mesh 2.0 | servicemesh-cni | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | cni | Not affected | |
| Red Hat Enterprise Linux 7 | buildah | Out of support scope | |
| Red Hat Enterprise Linux 7 | containernetworking-plugins | Out of support scope | |
| Red Hat Enterprise Linux 7 | podman | Out of support scope | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/containernetworking-plugins | Affected | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/podman | Affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/containernetworking-plugins | Affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/podman | Affected | |
| Red Hat Enterprise Linux 8 | container-tools:1.0/containernetworking-plugins | Out of support scope | |
| Red Hat Enterprise Linux 8 | container-tools:1.0/podman | Out of support scope | |
| Red Hat Enterprise Linux 8 | container-tools:1.0/buildah | Will not fix | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/buildah | Will not fix | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/buildah | Will not fix | |
| Red Hat Enterprise Linux 9 | buildah | Not affected | |
| Red Hat Enterprise Linux 9 | containernetworking-plugins | Not affected | |
| Red Hat Enterprise Linux 9 | podman | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | containernetworking-cni | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift-cluster-autoscaler | Will not fix | |
| Red Hat OpenShift Container Platform 4 | containernetworking-plugins | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-multus-cni | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-sriov-dp-admission-controller | Affected | |
| Red Hat OpenShift Container Platform 4 | podman | Affected | |
| Red Hat OpenShift Container Platform 4 | cri-o | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cluster-network-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-hyperkube | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-kube-proxy-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-multus-admission-controller | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-ovn-kubernetes | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-sdn-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-sriov-network-webhook | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-vertical-pod-autoscaler-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | buildah | Out of support scope | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-tests | Out of support scope | |
| Red Hat OpenShift Container Platform 4 | openshift4/cnf-tests-rhel8 | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/file-integrity-rhel8-operator | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cluster-autoscaler-rhel9 | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-network-interface-bond-cni-rhel8 | Will not fix | |
| Red Hat OpenShift Container Platform 4.7 | openshift4/ose-docker-builder | Fixed | RHSA-2021:1005 |
| Red Hat OpenShift Container Platform 4.7 | openshift4/ose-sriov-cni | Fixed | RHSA-2021:1007 |
| Red Hat OpenShift Container Platform 4.7 | openshift4/ose-sriov-infiniband-cni | Fixed | RHSA-2021:1552 |
| Red Hat OpenShift Container Platform 4.7 | openshift4/ose-container-networking-plugins-rhel8 | Fixed | RHSA-2022:0492 |
| Red Hat OpenShift Container Platform 4.7 | openshift4-wincw/windows-machine-config-rhel8-operator | Fixed | RHSA-2022:1660 |
| Red Hat OpenShift Container Platform 4.8 | openshift4/ose-container-networking-plugins-rhel8 | Fixed | RHSA-2021:2438 |
| Red Hat OpenShift Container Platform 4.8 | openshift4/ose-docker-builder | Fixed | RHSA-2021:2438 |
| Red Hat OpenShift Container Platform 4.8 | openshift4-wincw/windows-machine-config-rhel8-operator | Fixed | RHSA-2021:3001 |
| Red Hat OpenShift Virtualization 2 | cnv-containernetworking-plugins-container | Affected | |
| Red Hat OpenShift Virtualization 2 | ovs-cni-plugin-container | Affected | |
| Red Hat OpenShift Virtualization 2 | kubemacpool-container | Will not fix | |
| Red Hat Openshift Container Storage 4 | ocs4/cephcsi-rhel8 | Not affected | |
| Red Hat Openshift Container Storage 4 | ocs4/ocs-must-gather-rhel8 | Will not fix | |
| Red Hat Openshift Container Storage 4 | ocs4/ocs-rhel8-operator | Will not fix | |
| Red Hat Openshift Container Storage 4 | ocs4/rook-ceph-rhel8-operator | Will not fix | |
| Red Hat Quay 3 | quay/quay-builder-rhel8 | 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.2 | 7.2 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | High | High |
| 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:H/UI:N/S:U/C:H/I:H/A:H
NVD CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Acknowledgements
This issue was discovered by Casey Callendrello (Red Hat).
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.