{"id":"GO-2022-0230","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.","aliases":["CVE-2021-20206","GHSA-xjqr-g762-pxwp"],"modified":"2026-03-17T04:13:32.450303Z","published":"2022-07-01T20:17:57Z","database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2022-0230"},"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"}],"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":[{"symbols":["DelegateAdd","DelegateCheck","DelegateDel","FindInPath","RawExec.FindInPath"],"path":"github.com/containernetworking/cni/pkg/invoke"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0230.json"}}],"schema_version":"1.7.5"}