Skip to main content
← All vulnerabilities
CVE-2022-22984GHSA-4X6G-3CMX-W76R

Command Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1064.0, 2.31.3, 3.24.5, 2.5.3, 2.16.2, and 3 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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. 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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a snyk

    fixed in 1.1064.0

  • n/a snyk-mvn-plugin

    fixed in 2.31.3

  • n/a snyk-gradle-plugin

    fixed in 3.24.5

  • n/a @snyk/snyk-cocoapods-plugin

    fixed in 2.5.3

  • n/a snyk-sbt-plugin

    fixed in 2.16.2

  • n/a snyk-python-plugin

    fixed in 1.24.2

  • n/a snyk-docker-plugin

    fixed in 5.6.5

  • n/a @snyk/snyk-hex-plugin

    fixed in 1.1.6

  • snyknpm

    fixed in 1.1064.0

  • snyk-mvn-pluginnpm

    fixed in 2.31.3

  • snyk-sbt-pluginnpm

    fixed in 2.16.2

  • snyk-python-pluginnpm

    fixed in 1.24.2

  • @snyk/snyk-hex-pluginnpm

    fixed in 1.1.6

  • snyk-gradle-pluginnpm

    fixed in 3.24.5

  • snyk-docker-pluginnpm

    fixed in 5.6.5

  • @snyk/snyk-cocoapods-pluginnpm

    fixed in 2.5.3

References 17

imperva.com

security.snyk.io

GitHub · snyk/cli

GitHub · snyk/snyk-gradle-plugin

GitHub · snyk/snyk-mvn-plugin

GitHub · snyk/snyk-sbt-plugin

GitHub · snyk/snyk-hex-plugin

GitHub · snyk/snyk-python-plugin

GitHub · snyk/snyk-cocoapods-plugin

GitHub · snyk/snyk-docker-plugin