7.8

CVE-2022-40764: snyk cli OS Command Injection

CVSS: 7.8v3.1HighModified
AliasesGHSA-hpqj-7cj6-hfj8
Published 03-10-2022Last modified 03-08-2024

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.

Overall risk
41/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.61%
0%100%
Low · +0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 03-10-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last 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

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

19-09-202619-10-2026
EPSS score
0.61%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (imperva.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Npm2 products
  • snyk< 1.996.0
  • snyk-go-plugin< 1.19.1
Snyk2 products

2 vendors · 4 products

References

7 links