{"cve":"CVE-2022-40764","nvd":{"published":"2022-10-03T15:15:18.477","modified":"2026-06-17T05:02:00.423","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-78"],"references":["https://github.com/snyk/cli/releases/tag/v1.996.0","https://github.com/snyk/snyk-go-plugin/releases/tag/v1.19.1","https://support.snyk.io/hc/en-us/articles/7015908293789-CVE-2022-40764-Command-Injection-vulnerability-affecting-Snyk-CLI-versions-prior-to-1-996-0","https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution/","https://github.com/snyk/cli/releases/tag/v1.996.0"],"products":["snyk:cli","snyk:golang_cli"],"source":"nvd","synced_at":"2026-10-19T21:36:05.460296998+00:00"},"epss":{"cve":"CVE-2022-40764","score":0.00612,"percentile":0.4931,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hpqj-7cj6-hfj8","url":"https://osv.dev/vulnerability/GHSA-hpqj-7cj6-hfj8","summary":"Snyk CLI affected by Command Injection vulnerability","modified":"2023-11-08T04:10:25.121666Z","packages":[{"ecosystem":"npm","name":"snyk","purl":"pkg:npm/snyk","ranges":["<1.996.0"],"fixed":["1.996.0"]},{"ecosystem":"npm","name":"snyk-go-plugin","purl":"pkg:npm/snyk-go-plugin","ranges":["<1.19.1"],"fixed":["1.19.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}