Snyk CliApplication · Snyk

CVE-2022-22984

MEDIUM · 6.3 CVSS v3.1 Published 2022-11-30
Fix available
A fix is available. Upgrade to 1.1.6 / 1.24.2 or later.
See remediation →
69/100
Remediation priority · Elevated
Public exploit Remotely reachable Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis
How this class of weakness works · CWE-78

User input reaches a shell or system command without being fully separated from the command itself, so an attacker can append their own instructions. Because these run with the application's privileges, it often means full control of the host. The lasting fix is to avoid the shell entirely — call APIs directly and pass arguments as data, never as concatenated strings.

General guidance for the os command injection class — the official description and references above are authoritative for this specific CVE. Want a bespoke review and a reviewed fix? Ask our team →

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Snyk CliApplication
Affected:< 1.1064.0
Snyk Cocoapods CliApplication
Affected:< 2.5.3
Snyk Docker CliApplication
Affected:< 5.6.5
Snyk Gradle CliApplication
Affected:< 3.24.5
Snyk Hex CliApplication
Affected:< 1.1.6
Snyk Maven CliApplication
Affected:< 2.31.3
Snyk Python CliApplication
Affected:< 1.24.2
Snyk Sbt CliApplication
Affected:< 2.16.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 1.1.6 / 1.24.2 / 1.1064.0 or later
Fixed in 1.1.61.24.21.1064.0
Vendor patch github.com →
Recommended fix High confidence

Snyk Cli >= 1.1064.0, Snyk Cocoapods >= 2.5.3, Snyk Docker >= 5.6.5, Snyk Gradle >= 3.24.5, Snyk Hex >= 1.1.6, Snyk Maven >= 2.31.3, Snyk Python >= 1.24.2, Snyk Sbt >= 2.16.2

  1. Upgrade Snyk Cli to version 1.1064.0 or later
  2. Upgrade Snyk Cocoapods Cli to version 2.5.3 or later
  3. Upgrade Snyk Docker Cli to version 5.6.5 or later
  4. Upgrade Snyk Gradle Cli to version 3.24.5 or later
  5. Upgrade Snyk Hex Cli to version 1.1.6 or later
  6. Upgrade Snyk Maven Cli to version 2.31.3 or later
  7. Upgrade Snyk Python Cli to version 1.24.2 or later
  8. Upgrade Snyk Sbt Cli to version 2.16.2 or later

Generated from the published advisory — verify against the referenced sources before acting.

We can perform the upgrade in your staging environment and verify nothing breaks — typical engagement from $2,850. Get the upgrade done

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-22984 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-22984 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data