CVE-2021-20206
HIGH 7.2CVSS 3.1containernetworking/cni improper limitation of path name
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.
- Published
- 26 Mar 2021
- Last modified
- 10 Sep 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-22
- Also known as
- GHSA-xjqr-g762-pxwpGO-2022-0230SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549
- Sources
- NVDJSONOSV GHSA-xjqr-g762-pxwpJSONOSV GO-2022-0230JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | container_network_interfacecpe:2.3:a:linuxfoundation:container_network_interface:*:*:*:*:*:*:*:* |
< 0.8.1 | 0.8.1 |
| OSV | Go | github.com/containernetworking/cni | < 0.8.1 | 0.8.1 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1919391 · Issue Tracking, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-20206 · ADVISORY
- https://github.com/containernetworking/cni/pull/808 · WEB, FIX
- https://github.com/containernetworking/cni · PACKAGE
- https://pkg.go.dev/vuln/GO-2022-0230 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Mar 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Feb 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2022)