{"id":"CVE-2022-40764","aliases":["GHSA-hpqj-7cj6-hfj8"],"summary":"Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package.","published_at":"2022-10-03T00:00:00Z","modified_at":"2024-08-03T12:28:42.504Z","products":[],"rating":{"severity":"high","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.006120000034570694,"percentile":0.5010600090026855,"date":"2026-11-19T00:00:00Z"},"priority":7.3,"details":"Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package. Exploitation could follow from the common practice of viewing untrusted files in the Visual Studio Code editor, for example. The original demonstration was with shell metacharacters in the vendor.json ignore field, affecting snyk-go-plugin before 1.19.1. This affects, for example, the Snyk TeamCity plugin (which does not update automatically) before 20220930.142957.","affected_stack":[],"affected_other":[{"ecosystem":"NVD","package":"snyk:cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.996.0"}]}],"fixed":["1.996.0"],"provider":"nvd","source":"CVE-2022-40764","relation":"self"},{"ecosystem":"NVD","package":"snyk:golang_cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1"}]}],"fixed":["1.19.1"],"provider":"nvd","source":"CVE-2022-40764","relation":"self"},{"ecosystem":"npm","package":"snyk","purl":"pkg:npm/snyk","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.996.0"}]}],"fixed":["1.996.0"],"provider":"osv","source":"GHSA-hpqj-7cj6-hfj8","relation":"self"},{"ecosystem":"npm","package":"snyk-go-plugin","purl":"pkg:npm/snyk-go-plugin","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.1"}]}],"fixed":["1.19.1"],"provider":"osv","source":"GHSA-hpqj-7cj6-hfj8","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"affected","packages":["openshift-service-mesh/kiali-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-40764"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["openshift-service-mesh/kiali-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-40764"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.1","cpe":"cpe:/a:redhat:service_mesh:2.1","status":"affected","packages":["openshift-service-mesh/kiali-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-40764"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-40764","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-40764","license":"CC-BY-4.0","published_at":"2022-10-03T14:03:59Z","modified_at":"2024-08-03T12:28:42.504Z","summary":"Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package.","details":"Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package. Exploitation could follow from the common practice of viewing untrusted files in the Visual Studio Code editor, for example. The original demonstration was with shell metacharacters in the vendor.json ignore field, affecting snyk-go-plugin before 1.19.1. This affects, for example, the Snyk TeamCity plugin (which does not update automatically) before 20220930.142957.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/snyk/snyk-go-plugin/releases/tag/v1.19.1"},{"type":"WEB","url":"https://github.com/snyk/cli/releases/tag/v1.996.0"},{"type":"WEB","url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution/"},{"type":"WEB","url":"https://support.snyk.io/hc/en-us/articles/7015908293789-CVE-2022-40764-Command-Injection-vulnerability-affecting-Snyk-CLI-versions-prior-to-1-996-0"}]},{"provider":"nvd","source_id":"CVE-2022-40764","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40764","severity":[],"affected":[{"ecosystem":"NVD","package":"snyk:cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.996.0"}]}],"fixed":["1.996.0"],"provider":"nvd","source":"CVE-2022-40764","relation":"self"},{"ecosystem":"NVD","package":"snyk:golang_cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1"}]}],"fixed":["1.19.1"],"provider":"nvd","source":"CVE-2022-40764","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-hpqj-7cj6-hfj8","relation":"self","url":"https://osv.dev/vulnerability/GHSA-hpqj-7cj6-hfj8","license":"CC-BY-4.0","published_at":"2022-10-04T00:00:22Z","modified_at":"2023-11-08T04:10:25.121666Z","summary":"Snyk CLI affected by Command Injection vulnerability","details":"Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package. Exploitation could follow from the common practice of viewing untrusted files in the Visual Studio Code editor, for example. The original demonstration was with shell metacharacters in the vendor.json ignore field, affecting snyk-go-plugin before 1.19.1. This affects, for example, the Snyk TeamCity plugin (which does not update automatically) before 20220930.142957.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-hpqj-7cj6-hfj8"}],"affected":[{"ecosystem":"npm","package":"snyk","purl":"pkg:npm/snyk","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.996.0"}]}],"fixed":["1.996.0"],"provider":"osv","source":"GHSA-hpqj-7cj6-hfj8","relation":"self"},{"ecosystem":"npm","package":"snyk-go-plugin","purl":"pkg:npm/snyk-go-plugin","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.1"}]}],"fixed":["1.19.1"],"provider":"osv","source":"GHSA-hpqj-7cj6-hfj8","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40764"},{"type":"PACKAGE","url":"https://github.com/snyk/cli"},{"type":"WEB","url":"https://github.com/snyk/cli/releases/tag/v1.996.0"},{"type":"WEB","url":"https://github.com/snyk/snyk-go-plugin/releases/tag/v1.19.1"},{"type":"WEB","url":"https://support.snyk.io/hc/en-us/articles/7015908293789-CVE-2022-40764-Command-Injection-vulnerability-affecting-Snyk-CLI-versions-prior-to-1-996-0"},{"type":"WEB","url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution"}]},{"provider":"redhat-vex","source_id":"CVE-2022-40764","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-40764","license":"CC-BY-4.0","published_at":"2022-10-03T00:00:00Z","modified_at":"2023-09-01T04:02:54Z","summary":"snyk: Command Injection vulnerability affecting Snyk CLI","details":"A flaw was found in the snyk package. Affected versions of this package are vulnerable to Command Injection via the snyk-go-plugin which is used by the Snyk CLI tool.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-40764"},{"type":"Red Hat","score":"Moderate","source":"CVE-2022-40764"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"affected","packages":["openshift-service-mesh/kiali-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-40764"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["openshift-service-mesh/kiali-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-40764"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.1","cpe":"cpe:/a:redhat:service_mesh:2.1","status":"affected","packages":["openshift-service-mesh/kiali-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-40764"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-40764.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-40764"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2132239"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-40764"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40764"}]}],"references":[{"type":"WEB","url":"https://github.com/snyk/snyk-go-plugin/releases/tag/v1.19.1"},{"type":"WEB","url":"https://github.com/snyk/cli/releases/tag/v1.996.0"},{"type":"WEB","url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution/"},{"type":"WEB","url":"https://support.snyk.io/hc/en-us/articles/7015908293789-CVE-2022-40764-Command-Injection-vulnerability-affecting-Snyk-CLI-versions-prior-to-1-996-0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40764"},{"type":"PACKAGE","url":"https://github.com/snyk/cli"},{"type":"WEB","url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-40764.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-40764"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2132239"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-40764"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-40764","url":"https://www.cve.org/CVERecord?id=CVE-2022-40764","license":"CC-BY-4.0","modified_at":"2024-08-03T12:28:42.504Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-40764","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40764","relation":"self"},{"provider":"osv","source_id":"GHSA-hpqj-7cj6-hfj8","url":"https://osv.dev/vulnerability/GHSA-hpqj-7cj6-hfj8","license":"CC-BY-4.0","modified_at":"2023-11-08T04:10:25.121666Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-40764","url":"https://access.redhat.com/security/cve/CVE-2022-40764","license":"CC-BY-4.0","modified_at":"2023-09-01T04:02:54Z","relation":"self"}]}
