PT-2022-25524 · Snyk+1 · Snyk Ide Plugins+5
Published
2022-10-03
·
Updated
2023-08-08
·
CVE-2022-40764
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Snyk CLI versions prior to 1.996.0
snyk-go-plugin versions prior to 1.19.1
Snyk TeamCity plugin versions prior to 20220930.142957
Description
The issue allows for arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package. Exploitation could occur through the common practice of viewing untrusted files in the Visual Studio Code editor. The original demonstration involved shell metacharacters in the
vendor.json ignore field.Recommendations
For Snyk CLI versions prior to 1.996.0, update to version 1.996.0 or later.
For snyk-go-plugin versions prior to 1.19.1, update to version 1.19.1 or later.
For Snyk TeamCity plugin versions prior to 20220930.142957, update to version 20220930.142957 or later.
As a temporary workaround, consider restricting the use of the
vendor.json ignore field until a patch is available.Exploit
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Snyk Cli
Snyk Ide Plugins
Snyk Teamcity Plugin
Visual Studio Code
Snyk Npm Package
Snyk-Go-Plugin