{"id":"CVE-2022-40764","published":"2022-10-03T14:03:59Z","modified":"2024-08-03T12:28:42Z","title":"Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00612,"percentile":0.50242,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/snyk/snyk-go-plugin/releases/tag/v1.19.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/snyk/cli/releases/tag/v1.996.0","tags":["x_refsource_MISC"]},{"url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution/","tags":["x_refsource_MISC"]},{"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","tags":["x_refsource_MISC"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":10.05}]},"affected":[{"ecosystem":"npm","package":"snyk","vulnerableRanges":["<1.996.0"],"patched":["1.996.0"],"from":["GHSA-hpqj-7cj6-hfj8"],"provenance":"source"},{"ecosystem":"npm","package":"snyk-go-plugin","vulnerableRanges":["<1.19.1"],"patched":["1.19.1"],"from":["GHSA-hpqj-7cj6-hfj8"],"provenance":"source"}],"summary":{"text":"The Snyk CLI before version 1.996.0 contains a flaw allowing arbitrary command execution, affecting the Snyk IDE plugins and the snyk npm package, with the original demonstration involving shell metacharacters in the vendor.json ignore field of snyk-go-plugin before 1.19.1. An attacker could trigger execution simply by getting a user to open an untrusted file, such as in the Visual Studio Code editor, and the Snyk TeamCity plugin before 20220930.142957, which does not update automatically, is also affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:02Z"},"euvd":{"id":"EUVD-2022-7108","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-snyk-cli-cve-2022-40764","children":[{"from":"CVE-2022-40764","to":"CVE-2022-22984","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"…ugin before 2.16.2; the package snyk-python-plugin before 1.24.2; the package snyk-docker-plugin before 5.6.5; the package @snyk/snyk-hex-plugin before 1.1.6 are vulnerable to Command Injection due to an incomplete fix for CVE-2022-40764.","from":"CVE.org","in":"CVE-2022-22984"},{"kind":"version-step","provenance":"source","package":"npm:snyk","fromFixed":"1.996.0","toFixed":"1.1064.0","daysApart":58},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2022-40764","published":"2022-10-03","fixed":"1.996.0","kev":false},{"cve":"CVE-2022-22984","published":"2022-11-30","fixed":"1.1064.0","kev":false},{"cve":"CVE-2022-24441","published":"2022-11-30","fixed":"1.1064.0","kev":false,"link":{"from":"CVE-2022-40764","to":"CVE-2022-24441","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:snyk","fromFixed":"1.996.0","toFixed":"1.1064.0","daysApart":58},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same package + description similarity"}]}},{"cve":"CVE-2025-6624","published":"2025-06-26","fixed":"1.1297.3","kev":false}],"package":"npm:snyk"}}