{"id":"CVE-2022-40764","aliases":["CVE-2022-40764","GHSA-hpqj-7cj6-hfj8"],"related":[],"kind":"vulnerability","state":"published","title":"Snyk CLI affected by Command Injection vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Snyk CLI versiones anteriores a 1.996.0, permite una ejecución de comandos arbitraria, afectando a los plugins de Snyk IDE y al paquete snyk npm. La explotación podría seguir la práctica común de ver archivos no confiables en el editor de código de Visual Studio, por ejemplo. La demostración original fue con metacaracteres de shell en el campo vendor.json ignore, afectando a snyk-go-plugin versiones anteriores a 1.19.1. Esto afecta, por ejemplo, al plugin Snyk TeamCity (que no se actualiza automáticamente) versiones anteriores a 20220930.142957","source":"nvd"}],"published":"2022-10-03T14:03:59.000Z","modified":"2026-06-17T05:02:00.423Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.996.0"}],"ecosystem":"npm","package":"snyk","purl":"pkg:npm/snyk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.1"}],"ecosystem":"npm","package":"snyk-go-plugin","purl":"pkg:npm/snyk-go-plugin","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.996.0"}],"vendor":"snyk","product":"cli","cpe":"cpe:2.3:a:snyk:cli:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.19.1"}],"vendor":"snyk","product":"golang_cli","cpe":"cpe:2.3:a:snyk:golang_cli:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/snyk/snyk-go-plugin/releases/tag/v1.19.1","tags":["patch","release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/snyk/cli/releases/tag/v1.996.0","tags":["patch","release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution/","tags":["exploit","technical-description","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"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":["patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40764","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/snyk/cli","tags":["package"],"sources":["ghsa"]},{"url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-40764","url":"https://www.cve.org/CVERecord?id=CVE-2022-40764","licence":"CVE Terms of Use","modified":"2024-08-03T12:28:42.504Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hpqj-7cj6-hfj8","url":"https://github.com/advisories/GHSA-hpqj-7cj6-hfj8","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:25.121Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-40764","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40764","licence":"Public domain","modified":"2026-06-17T05:02:00.423Z"}],"updatedAt":"2026-11-25T22:58:15.418Z","epss":{"score":0.00619,"percentile":0.5099,"date":"2026-12-01T12:00:22.000Z"}}