{"answers":{"affected":"3 open source packages ship an affected version, including github.com/containernetworking/cni. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-20206 in the wild and no public exploit code.","fix":"Upgrade github.com/containernetworking/cni to 0.8.1 or later.","what":"CVE-2021-20206 is a high-severity path traversal vulnerability in containernetworking-cni, published on 26 Mar 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-20206 and fix it if it is affected.\n\nWhat it is: CVE-2021-20206 is a high-severity path traversal vulnerability in containernetworking-cni, published on 26 Mar 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-20206 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/containernetworking/cni (Go): affected all versions; fixed in 0.8.1\n- github.com/containernetworking/cni (Go): affected all versions; fixed in 0.8.1\n- github.com/containernetworking/cni (Go): affected all versions; fixed in 0.8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-20206/ (Markdown: https://insights.sbomify.com/CVE-2021-20206/index.md)","id":"CVE-2021-20206","markdown":"https://insights.sbomify.com/CVE-2021-20206/index.md","name":"CVE-2021-20206","record":{"aliases":["AZL-44838","CLEANSTART-2024-OS27994","DEBIAN-CVE-2021-20206","GHSA-xjqr-g762-pxwp","GO-2022-0230","SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549","SUSE-SU-2022:4150-1","SUSE-SU-2022:4592-1","SUSE-SU-2022:4593-1","UBUNTU-CVE-2021-20206","openSUSE-SU-2024:12371-1","openSUSE-SU-2024:12512-1","openSUSE-SU-2024:12513-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"CNI plugin library","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary system binaries via path traversal in CNI plugin configuration, compromising container network integrity and availability.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"container_network_interface","vendor":"linuxfoundation"}],"cvss":{"score":7.2,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["Go","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Module for Containers 15 SP3","SUSE:Linux Enterprise Module for Containers 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15","SUSE:Linux Enterprise Module for Public Cloud 15 SP1","SUSE:Linux Enterprise Module for Public Cloud 15 SP2","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.2","openSUSE:Leap Micro 5.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"containernetworking/cni improper limitation of path name","id":"CVE-2021-20206","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2021"},"n_packages":61,"n_references":2,"next":{"headline":"Privilege escalation in cifs-utils","id":"CVE-2021-20208"},"packages":[{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0"],"last_affected":[],"package":"github.com/containernetworking/cni","purl":null,"source":"GHSA-xjqr-g762-pxwp"},{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0"],"last_affected":[],"package":"github.com/containernetworking/cni","purl":"pkg:golang/github.com/containernetworking/cni","source":"GHSA-xjqr-g762-pxwp"},{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0"],"last_affected":[],"package":"github.com/containernetworking/cni","purl":"pkg:golang/github.com/containernetworking/cni","source":"GO-2022-0230"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOS","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOS","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP3","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP3","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP3","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP3","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP4","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP4","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP4","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP4","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15","fixed":["0.7.1-150000.1.7.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015","source":"SUSE-SU-2022:4150-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP1","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP1","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP2","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP2","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-BCL","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCL","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-BCL","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCL","source":"SUSE-SU-2022:4593-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["0.7.1-150100.3.8.1"],"introduced":["0"],"last_affected":[],"package":"cni","purl":"pkg:rpm/suse/cni\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2022:4592-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["0.8.6-150100.3.11.1"],"introduced":["0"],"last_affected":[],"package":"cni-plugins","purl":"pkg:rpm/suse/cni-plugins\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2022:4593-1"}],"prev":{"headline":"Denial of service in Libjpeg-turbo","id":"CVE-2021-20205"},"products":["containernetworking-cni"],"published":"2021-03-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can execute arbitrary system binaries via path traversal in CNI plugin configuration, compromising container network integrity and availability.","url":"https://insights.sbomify.com/CVE-2021-20206/"}