PT-2022-15754 · Snyk · Snyk-Mvn-Plugin+7
Ron Masas
·
Published
2022-11-30
·
Updated
2023-08-08
·
CVE-2022-22984
CVSS v3.1
6.3
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
snyk versions prior to 1.1064.0
snyk-mvn-plugin versions prior to 2.31.3
snyk-gradle-plugin versions prior to 3.24.5
@snyk/snyk-cocoapods-plugin versions prior to 2.5.3
snyk-sbt-plugin versions prior to 2.16.2
snyk-python-plugin versions prior to 1.24.2
snyk-docker-plugin versions prior to 5.6.5
@snyk/snyk-hex-plugin versions prior to 1.1.6
Description
The issue allows attackers to run arbitrary commands on the host system where the Snyk CLI is installed by passing in crafted command line flags. A successful exploit requires a user to execute the snyk test command on untrusted files. 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.
Recommendations
For snyk versions prior to 1.1064.0, update to version 1.1064.0 or later.
For snyk-mvn-plugin versions prior to 2.31.3, update to version 2.31.3 or later.
For snyk-gradle-plugin versions prior to 3.24.5, update to version 3.24.5 or later.
For @snyk/snyk-cocoapods-plugin versions prior to 2.5.3, update to version 2.5.3 or later.
For snyk-sbt-plugin versions prior to 2.16.2, update to version 2.16.2 or later.
For snyk-python-plugin versions prior to 1.24.2, update to version 1.24.2 or later.
For snyk-docker-plugin versions prior to 5.6.5, update to version 5.6.5 or later.
For @snyk/snyk-hex-plugin versions prior to 1.1.6, update to version 1.1.6 or later.
As a temporary workaround, consider avoiding the execution of the snyk test command on untrusted files until the issue is resolved.
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
Snyk-Cocoapods-Plugin
Snyk-Docker-Plugin
Snyk-Gradle-Plugin
Snyk-Hex-Plugin
Snyk-Mvn-Plugin
Snyk-Python-Plugin
Snyk-Sbt-Plugin