CVE-2022-22984 in Snyk Cli and 7 more products
The package snyk before 1.1064.0; the package snyk-mvn-plugin before 2.31.3; the package snyk-gradle-plugin before 3.24.5; the package @snyk/snyk-cocoapods-plugin before 2.5.3; the package snyk-sbt-plugin before 2.16.2; the package snyk-python-plugin before 1.24.2; the package snyk-docker-plugin before 5.6.5; the pa...
Affects 8 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Snyk | Snyk Cli | < 1.1064.0 |
| Snyk | Snyk Cocoapods Cli | < 2.5.3 |
| Snyk | Snyk Docker Cli | < 5.6.5 |
| Snyk | Snyk Gradle Cli | < 3.24.5 |
| Snyk | Snyk Hex Cli | < 1.1.6 |
| Snyk | Snyk Maven Cli | < 2.31.3 |
| Snyk | Snyk Python Cli | < 1.24.2 |
| Snyk | Snyk Sbt Cli | < 2.16.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
The package snyk before 1.1064.0; the package snyk-mvn-plugin before 2.31.3; the package snyk-gradle-plugin before 3.24.5; the package @snyk/snyk-cocoapods-plugin before 2.5.3; the package snyk-sbt-plugin before 2.16.2; the package snyk-python-plugin before 1.24.2; the package snyk-docker-plugin before 5.6.5; the package @snyk/snyk-hex-plugin before 1.1.6 are vulnerable to Command Injection due to an incomplete fix for [CVE-2022-40764](https://security.snyk.io/vuln/SNYK-JS-SNYK-3037342). A successful exploit allows attackers to run arbitrary commands on the host system where the Snyk CLI is installed by passing in crafted command line flags. In order to exploit this vulnerability, a user would have to execute the snyk test command on untrusted files. In most cases, an attacker positioned to control the command line arguments to the Snyk CLI would already be positioned to execute arbitrary commands. However, this could be abused in specific scenarios, such as continuous integration pipelines, where developers can control the arguments passed to the Snyk CLI to leverage this component as part of a wider attack against an integration/build pipeline. This issue has been addressed in the latest Snyk Docker images available at https://hub.docker.com/r/snyk/snyk as of 2022-11-29. Images downloaded and built prior to that date should be updated. The issue has also been addressed in the Snyk TeamCity CI/CD plugin as of version v20221130.093605.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-22984 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-264082-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| Published | 2022-11-30 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-78
CAPEC-88 OS Command Injection via CWE-78
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
{ "executive_summary": "Multiple Snyk plugins and packages are vulnerable to Command Injection due to improper handling of user input, which could allow an attacker to execute arbitrary commands on the system.", "attack_vector_detail": "An attacker can exploit this vulnerability by providing specially crafted input to the affected Snyk plugins or packages. This input is then used to construct and execute system commands without proper sanitization, leading to command injection.", "affected_components": [ "snyk before 1.1064.0", "snyk-mvn-plugin before 2.31.3", "snyk-gradle-plugin before 3.24.5", "@snyk/snyk-cocoapods-plugin before 2.5.3", "snyk-sbt-plugin before 2.16.2", "snyk-python-plugin before 1.24.2", "snyk-docker-plugin before 5.6.5", "@snyk/snyk-hex-plugin before 1.1.6" ], "exploitation_likelihood": "MEDIUM", "
Vulnerability details: The package snyk before 1.1064.0; the package snyk-mvn-plugin before 2.31.3; the package snyk-gradle-plugin before 3.24.5; the package @snyk/snyk-cocoapods-plugin before 2.5.3; the package snyk-sbt-plugin before 2.16.2; the package snyk-python-plugin before 1.24.2; the package snyk-docker-plugin before 5.6.5; the package @snyk/snyk-hex-plugin before 1.1.6 are vulnerable to Command Injection due to an incomplete fix for [CVE-2022-40764](https://security.snyk.io/vuln/SNYK-JS-SNYK-3037342). A succe CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
Questions
What is CVE-2022-22984?
{ "executive_summary": "Multiple Snyk plugins and packages are vulnerable to Command Injection due to improper handling of user input, which could allow an attacker to execute arbitrary commands on the system.", "attack_vector_detail": "An attacker can exploit this vulnerability by providing specially crafted input to the affected Snyk plugins or packages. This input is then used to construct and execute system commands without proper sanitization, leading to command injection.", "affected
What is the CVSS score for CVE-2022-22984?
CVE-2022-22984 has CVSS 6.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L. EPSS: 4.2%.
Is CVE-2022-22984 actively exploited?
No confirmed active exploitation of CVE-2022-22984 as of 2026-09-25.
How do I remediate CVE-2022-22984?
Priority: MONITOR. Advisory: https://security.snyk.io/vuln/SNYK-JS-SNYK-3038622
What systems are affected by CVE-2022-22984?
CVE-2022-22984 affects Snyk Snyk Cli, Snyk Cocoapods Cli, Snyk Docker Cli, Snyk Gradle Cli, Snyk Hex Cli, Snyk Maven Cli, Snyk Python Cli, Snyk Sbt Cli.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Snyk","product":"Snyk Cli","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.