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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | buildah | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine:v3.21 | buildah | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine:v3.22 | buildah | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine:v3.23 | buildah | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Alpine:v3.24 | buildah | 1.19.4-r0 | ALPINE-CVE-2021-20206 |
| Debian:12 | golang-github-appc-cni | 0.8.1-1 | DEBIAN-CVE-2021-20206 |
| Debian:13 | golang-github-appc-cni | 0.8.1-1 | DEBIAN-CVE-2021-20206 |
| Debian:14 | golang-github-appc-cni | 0.8.1-1 | DEBIAN-CVE-2021-20206 |
| Go | github.com/containernetworking/cni | 0.8.1 | GO-2022-0230 |
| Go | github.com/containernetworking/cni | 0.8.1 | GHSA-xjqr-g762-pxwp |
| Ubuntu:22.04:LTS | golang-github-appc-cni | no fix listed | UBUNTU-CVE-2021-20206 |
| Ubuntu:24.04:LTS | golang-github-appc-cni | no fix listed | UBUNTU-CVE-2021-20206 |
| Ubuntu:25.10 | golang-github-appc-cni | no fix listed | UBUNTU-CVE-2021-20206 |
| Ubuntu:26.04:LTS | golang-github-appc-cni | no fix listed | UBUNTU-CVE-2021-20206 |
| Ubuntu:26.10 | golang-github-appc-cni | no fix listed | UBUNTU-CVE-2021-20206 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | containernetworking-cni | containernetworking/cni 0.8.1 |
Weakness: CWE-20
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1919391 x_refsource_MISC
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549 x_refsource_MISC