Improper Protection of Alternate Path in cni - CVE-2021-20206

 

Improper Protection of Alternate Path in cni - CVE-2021-20206

Published: August 5, 2021


Vulnerability identifier: #VU55590
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-20206
CWE-ID: CWE-424
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to compromise the affected system.

the vulnerability exists due to improper input validation. 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 a remote user to execute other existing binaries other than the cni plugins/types, such as 'reboot'.


Affected software

cni
OpenShift Container Platform for Windows Containers
SUSE Manager Proxy
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
openSUSE Leap Micro
SUSE Enterprise Storage
SUSE Linux Enterprise Storage
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Module for Public Cloud
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Module for Containers
openSUSE Leap
Fedora
IBM Edge Application Manager
Red Hat OpenShift Container Platform
cni
cni-plugins
containernetworking-plugins
skopeo
containers-common
buildah
libgpg-error0
libgpg-error0-32bit-debuginfo
libgpg-error0-32bit
libgpg-error-devel-32bit-debuginfo
libgpg-error-devel-32bit
libgpg-error-devel-debuginfo
libgpg-error-devel
libgpg-error0-debuginfo
libgpg-error-debugsource
podman
podman-debuginfo
podman-cni-config
podman-docker
podman-remote-debuginfo
podman-remote

How to mitigate CVE-2021-20206

Install updates from vendor's website.

cni - update to 0.8.1
OpenShift Container Platform for Windows Containers - addressed in versions 2.0.5, 3.0.0
Red Hat OpenShift Container Platform - addressed in versions 4.7.5, 4.7.11, 4.7.43
cni - addressed in versions 0.7.1-150000.1.7.1, 0.7.1-150100.3.8.1
cni-plugins - addressed in versions 0.8.6-150000.1.7.1, 0.8.6-150100.3.11.1
containernetworking-plugins - addressed in versions 0.9.1-1.fc32, 0.9.1-1.fc33, 0.9.1-2.fc33
skopeo - update to 1.2.2-1.fc33
containers-common - update to 1-4.fc33
buildah - addressed in versions 1.19.4-1.fc32, 1.19.4-1.fc33, 1.19.6-2.fc33
buildah - addressed in versions 1.25.1-150100.3.13.12, 1.27.1-150300.8.11.1, 1.27.1-150400.3.8.1
libgpg-error0 - update to 1.42-150300.9.3.1
libgpg-error0-32bit-debuginfo - update to 1.42-150300.9.3.1
libgpg-error0-32bit - update to 1.42-150300.9.3.1
libgpg-error-devel-32bit-debuginfo - update to 1.42-150300.9.3.1
libgpg-error-devel-32bit - update to 1.42-150300.9.3.1
libgpg-error-devel-debuginfo - update to 1.42-150300.9.3.1
libgpg-error-devel - update to 1.42-150300.9.3.1
libgpg-error0-debuginfo - update to 1.42-150300.9.3.1
libgpg-error-debugsource - update to 1.42-150300.9.3.1
podman - update to 3.0.1-1.fc33
podman - addressed in versions 4.3.1-150300.9.15.1, 4.3.1-150400.4.11.1
podman-debuginfo - addressed in versions 4.3.1-150300.9.15.1, 4.3.1-150400.4.11.1
podman-cni-config - addressed in versions 4.3.1-150300.9.15.1, 4.3.1-150400.4.11.1
podman-docker - update to 4.3.1-150400.4.11.1
podman-remote-debuginfo - update to 4.3.1-150400.4.11.1
podman-remote - update to 4.3.1-150400.4.11.1

External References

Related Security Bulletins