Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | snyk (npm) | before 1.996.0 | 1.996.0 | Patch available | GHSA-hpqj-7cj6-hfj8 |
| — | snyk-go-plugin (npm) | before 1.19.1 | 1.19.1 | Patch available | GHSA-hpqj-7cj6-hfj8 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- snyk (npm) Vendor— Affected before 1.996.0 Fixed in 1.996.0 Patch available GHSA-hpqj-7cj6-hfj8
- snyk-go-plugin (npm) Vendor— Affected before 1.19.1 Fixed in 1.19.1 Patch available GHSA-hpqj-7cj6-hfj8
Remediation
- Fix · GHSA-hpqj-7cj6-hfj8 snyk (npm) Fixed in 1.996.0 Advisory →
- Fix · GHSA-hpqj-7cj6-hfj8 snyk-go-plugin (npm) Fixed in 1.19.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2 | Affected | No fix planned: Will not fix |
| OpenShift Service Mesh 2.0 | Affected | No fix planned: Will not fix |
| OpenShift Service Mesh 2.1 | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-40764
- 2026-10-03 Alias added: GHSA-hpqj-7cj6-hfj8
References
Patch 2
Sources
- CVE-2022-40764 · CVE Program
- CVE-2022-40764 · NVD
- FIRST EPSS
- GHSA-hpqj-7cj6-hfj8 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-40764 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences