cve.bz

CVE-2021-20206 linuxfoundation container network interface: Path traversal

7.2 highEPSS 1.5%Fix available

High (7.2) in linuxfoundation container network interface. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/containernetworking/cni 0.8.1.

On this page
An improper limitation of path name flaw was found in containernetworking/cni in versions before 0.8.1. 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.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-20 Improper Input Validation
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20206 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20206?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20206?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20206 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linuxfoundation:container_network_interfacebefore 0.8.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xjqr-g762-pxwpGogithub.com/containernetworking/cni<0.8.10.8.1
GO-2022-0230Gogithub.com/containernetworking/cni<0.8.10.8.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-github-appc-cni0.8.1-1DEBIAN-CVE-2021-20206
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 moregolang-github-appc-cnino fix listedUBUNTU-CVE-2021-20206
SUSEEnterprise Storage 6, Enterprise Storage 7, Enterprise Storage 7.1 and 20 morecni0.7.1-150100.3.8.1SUSE-SU-2022:4592-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Enterprise Storage 7.1 and 20 morecni-plugins0.8.6-150100.3.11.1SUSE-SU-2022:4593-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 12 morebuildah1.25.1-150100.3.13.12SUSE-SU-2022:3480-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morepodman4.3.1-150300.9.15.1SUSE-SU-2023:0326-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Module for Basesystem 15 SP3libgpg-error1.42-150300.9.3.1SUSE-SU-2022:3766-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Containers 15 SP4podman4.3.1-150400.4.11.1SUSE-SU-2023:0187-1
SUSELinux Enterprise Module for Containers 15 SP3buildah1.23.1-150300.8.3.1SUSE-SU-2022:0770-1
SUSELinux Enterprise Module for Containers 15 SP3buildah1.27.1-150300.8.11.1SUSE-SU-2022:3766-1
SUSELinux Enterprise Module for Containers 15 SP4buildah1.27.1-150400.3.8.1SUSE-SU-2022:3655-1
SUSELinux Enterprise Module for Public Cloud 15cni0.7.1-150000.1.7.1SUSE-SU-2022:4150-1
SUSELinux Enterprise Module for Public Cloud 15cni-plugins0.8.6-150000.1.7.1SUSE-SU-2022:4151-1
openSUSELeap 15.3buildah1.23.1-150300.8.3.1openSUSE-SU-2022:0770-1
openSUSELeap 15.3buildah1.27.1-150300.8.11.1SUSE-SU-2022:3766-1
openSUSELeap 15.3, Leap 15.4, Leap Micro 5.2 and 1 morecni0.7.1-150100.3.8.1SUSE-SU-2022:4592-1
openSUSELeap 15.3, Leap 15.4, Leap Micro 5.2 and 1 morecni-plugins0.8.6-150100.3.11.1SUSE-SU-2022:4593-1
openSUSELeap 15.3, Leap Micro 5.2libgpg-error1.42-150300.9.3.1SUSE-SU-2022:3766-1
openSUSELeap 15.4buildah1.27.1-150400.3.8.1SUSE-SU-2022:3655-1
openSUSELeap 15.4, Leap Micro 5.3podman4.3.1-150400.4.11.1SUSE-SU-2023:0187-1
openSUSELeap Micro 5.2podman4.3.1-150300.9.15.1SUSE-SU-2023:0326-1
openSUSETumbleweedbuildah1.23.0-1.1openSUSE-SU-2024:10666-1
openSUSETumbleweedcni1.0.1-3.1openSUSE-SU-2024:12512-1
openSUSETumbleweedcni-plugins1.1.1-2.1openSUSE-SU-2024:12513-1
openSUSETumbleweedpodman4.2.0-2.1openSUSE-SU-2024:12371-1
Alpinev3.14, v3.15, v3.16 and 8 morebuildah1.19.4-r0ALPINE-CVE-2021-20206
Azure Linux3buildah1.41.4-2AZL-44838

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.7openshift4/ose-docker-builder:v4.7.0-202103270130.p0Fixed 2021-04-05RHSA-2021:1005
Red Hat OpenShift Container Platform 4.7openshift4/ose-sriov-cni:v4.7.0-202103270130.p0Fixed 2021-04-05RHSA-2021:1007
Red Hat OpenShift Container Platform 4.7openshift4/ose-sriov-infiniband-cni:v4.7.0-202104281843.p0Fixed 2021-05-19RHSA-2021:1552
Red Hat OpenShift Container Platform 4.7openshift4/ose-container-networking-plugins-rhel8:v4.7.0-202201261537.p0.ga3cf46b.assembly.streamFixed 2022-02-16RHSA-2022:0492
Red Hat OpenShift Container Platform 4.7openshift4-wincw/windows-machine-config-rhel8-operator:2.0.5-4Fixed 2022-05-02RHSA-2022:1660
Red Hat OpenShift Container Platform 4.8openshift4/ose-container-networking-plugins-rhel8:v4.8.0-202106291913.p0.git.a8801b0.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-docker-builder:v4.8.0-202107152024.p0.git.70b7b95.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4-wincw/windows-machine-config-rhel8-operator:3.0.0-16Fixed 2021-08-03RHSA-2021:3001
OpenShift Service Mesh 2.0servicemesh-cniAffected
Red Hat Advanced Cluster Management for Kubernetes 2cniNot affected
Red Hat Enterprise Linux 7buildahOut of support scope
Red Hat Enterprise Linux 7containernetworking-pluginsOut of support scope
Red Hat Enterprise Linux 7podmanOut of support scope
Red Hat Enterprise Linux 8container-tools:1.0/buildahWill not fix
Red Hat Enterprise Linux 8container-tools:1.0/containernetworking-pluginsOut of support scope
Red Hat Enterprise Linux 8container-tools:1.0/podmanOut of support scope
Red Hat Enterprise Linux 8container-tools:2.0/buildahWill not fix
Red Hat Enterprise Linux 8container-tools:2.0/containernetworking-pluginsAffected
Red Hat Enterprise Linux 8container-tools:2.0/podmanAffected
Red Hat Enterprise Linux 8container-tools:rhel8/buildahWill not fix
35 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20206.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON