CVE-2022-40764: OS Command Injection

Published Oct 3, 2022
·
Updated

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.

Affected Software

4 affected componentsFixes available
npm/snyk-go-plugin<1.19.1
1.19.1
npm/snyk<1.996.0
1.996.0
Snyk CLI<1.996.0
Snyk Golang Cli<1.19.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/snyk-go-plugin to a version that resolves this vulnerability.

    Fixed in 1.19.1
  2. Upgrade

    Upgrade npm/snyk to a version that resolves this vulnerability.

    Fixed in 1.996.0
  3. Upgrade

    Upgrade snyk-cli to a version that resolves this vulnerability.

    Fixed in 1.996.0
  4. Upgrade

    Upgrade snyk-go-plugin to a version that resolves this vulnerability.

    Fixed in 1.19.1
  5. Upgrade

    Upgrade Snyk TeamCity plugin to a version that resolves this vulnerability.

    Fixed in 20220930.142957

Event History

Oct 3, 2022
CVE Published
via MITRE·02:03 PM
Data Sourced
via MITRE·02:03 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 4, 2022
Advisory Published
12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-40764?

CVE-2022-40764 is a vulnerability that allows arbitrary command execution in Snyk CLI before version 1.996.0.

2

How does CVE-2022-40764 affect Snyk IDE plugins?

CVE-2022-40764 affects Snyk IDE plugins by allowing arbitrary command execution.

3

How does CVE-2022-40764 affect the Snyk npm package?

CVE-2022-40764 affects the Snyk npm package by allowing arbitrary command execution.

4

How can CVE-2022-40764 be exploited?

CVE-2022-40764 can be exploited by viewing untrusted files in the Visual Studio Code editor.

5

What is the severity of CVE-2022-40764?

CVE-2022-40764 has a severity rating of 7.8 (high).

6

How can I fix CVE-2022-40764?

To fix CVE-2022-40764, update Snyk CLI to version 1.996.0 or higher and Snyk IDE plugins to version 1.19.1 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203