Advisory

GHSA-xjqr-g762-pxwp

Also known as: CVE-2021-20206, GO-2022-0230, SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549

Summary

containernetworking/cni improper limitation of path name

Details

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.
Specific Go Packages Affected
github.com/containernetworking/cni/pkg/invoke

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-02-15 01:57 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/containernetworking/cni

Go · All systems

Affected

  • introduced 0, fixed 0.8.1 (semver)

Fixed versions

0.8.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences