{"schema_version":"1.7.5","id":"GO-2022-0230","published":"2022-07-01T20:17:57Z","modified":"2026-03-13T21:56:25.241209Z","aliases":["CVE-2021-20206","GHSA-xjqr-g762-pxwp"],"summary":"Improper limitation of path name in github.com/containernetworking/cni","details":"The FindInPath function is vulnerable to directory traversal attacks, potentially permitting attackers to execute arbitrary binaries.\n\nThis function does not sanitize its plugin parameter, so parameter names containing \"../\" or other such elements may reference arbitrary locations on the filesystem.","affected":[{"package":{"name":"github.com/containernetworking/cni","ecosystem":"Go","purl":"pkg:golang/github.com/containernetworking/cni"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.8.1"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/containernetworking/cni/pkg/invoke","symbols":["DelegateAdd","DelegateCheck","DelegateDel","FindInPath","RawExec.FindInPath"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0230.json"}}],"references":[{"type":"FIX","url":"https://github.com/containernetworking/cni/pull/808"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1919391"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMCONTAINERNETWORKINGCNIPKGINVOKE-1070549"}],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2022-0230"}}