CVE-2022-40764: snyk cli OS Command Injection
Vulnerability summary
CVE-2022-40764 is a high (CVSS 7.8) OS Command Injection vulnerability in snyk cli. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 48.3% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 03-10-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
2 scores · 2 sources · 1 version- OSV · NpmEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.61%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
+0.04 pp
From 0.57% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (imperva.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Npm2 products
- snyk< 1.996.0
- snyk-go-plugin< 1.19.1
Snyk2 products
- cli< 1.996.0
- golang_cli< 1.19.1
2 vendors · 4 products
References
7 links- github.com/snyk/snyk-go-plugin/releases/tag/v1.19.1X Refsource MISCWEBPatchRelease NotesThird Party Advisory
- github.com/snyk/cliPACKAGE