Vulnerability · Published Mar 26, 2021 · Assigned by redhat

CVE-2021-20206

High 7.2

In plain English

A high-severity improper input validation in containernetworking-cni. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.2High
Exploit odds (30 days)1.5%top 25.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20buildah1.19.4-r0ALPINE-CVE-2021-20206
Alpine:v3.21buildah1.19.4-r0ALPINE-CVE-2021-20206
Alpine:v3.22buildah1.19.4-r0ALPINE-CVE-2021-20206
Alpine:v3.23buildah1.19.4-r0ALPINE-CVE-2021-20206
Alpine:v3.24buildah1.19.4-r0ALPINE-CVE-2021-20206
Debian:12golang-github-appc-cni0.8.1-1DEBIAN-CVE-2021-20206
Debian:13golang-github-appc-cni0.8.1-1DEBIAN-CVE-2021-20206
Debian:14golang-github-appc-cni0.8.1-1DEBIAN-CVE-2021-20206
Gogithub.com/containernetworking/cni0.8.1GO-2022-0230
Gogithub.com/containernetworking/cni0.8.1GHSA-xjqr-g762-pxwp
Ubuntu:22.04:LTSgolang-github-appc-cnino fix listedUBUNTU-CVE-2021-20206
Ubuntu:24.04:LTSgolang-github-appc-cnino fix listedUBUNTU-CVE-2021-20206
Ubuntu:25.10golang-github-appc-cnino fix listedUBUNTU-CVE-2021-20206
Ubuntu:26.04:LTSgolang-github-appc-cnino fix listedUBUNTU-CVE-2021-20206
Ubuntu:26.10golang-github-appc-cnino fix listedUBUNTU-CVE-2021-20206

Affected products (as reported)

VendorProductVersions
n/a containernetworking-cni containernetworking/cni 0.8.1

Weakness: CWE-20

References