CVE-2021-20206
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.
What to do
Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-appc-cni | Fix pending | UBUNTU-CVE-2021-20206 | |
| Ubuntu 26.04 | golang-github-appc-cni | Under investigation | UBUNTU-CVE-2021-20206 | |
| Ubuntu 25.10 | golang-github-appc-cni | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-20206 | |
| Ubuntu 24.04 | golang-github-appc-cni | Under investigation | UBUNTU-CVE-2021-20206 | |
| Ubuntu 22.04 | golang-github-appc-cni | Under investigation | UBUNTU-CVE-2021-20206 | |
| Ubuntu 20.04 | golang-github-appc-cni | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-20206 | |
| Ubuntu 18.04 | golang-github-appc-cni | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-20206 | |
| Debian 14 | golang-github-appc-cni | Fixed | 0.8.1-1 | DEBIAN-CVE-2021-20206 |
| Debian 13 | golang-github-appc-cni | Fixed | 0.8.1-1 | DEBIAN-CVE-2021-20206 |
| Debian 12 | golang-github-appc-cni | Fixed | 0.8.1-1 | DEBIAN-CVE-2021-20206 |
| Red Hat Enterprise Linux 9 | buildah | Not affected | ||
| Red Hat Enterprise Linux 9 | buildah-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | containernetworking-plugins | Not affected | ||
| Red Hat Enterprise Linux 9 | podman | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-catatonit | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | buildah-tests | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | containernetworking-plugins | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-catatonit | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-docker | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-gvproxy | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-remote | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-tests | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | buildah | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | containernetworking-plugins | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | podman | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.23 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.22 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.21 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.20 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.19 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.18 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.17 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.16 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.15 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine Linux 3.14 | buildah | Fixed | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Go library | github.com/containernetworking/cni | Fixed | 0.8.1 | GO-2022-0230 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- containernetworking-cni: affected: containernetworking/cni 0.8.1
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1919391
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.