Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-22984

MEDIUM 5.0PoCEPSS 92%

Command Injection

Also known as GHSA-4x6g-3cmx-w76r

Mitigation

  • Upgrade snyk to 1.1064.0 or later.
  • Upgrade snyk-mvn-plugin to 2.31.3 or later.
  • Upgrade snyk-sbt-plugin to 2.16.2 or later.
  • Upgrade snyk-python-plugin to 1.24.2 or later.
  • Upgrade @snyk/snyk-hex-plugin to 1.1.6 or later.
  • Upgrade snyk-gradle-plugin to 3.24.5 or later.
  • Upgrade snyk-docker-plugin to 5.6.5 or later.
  • Upgrade @snyk/snyk-cocoapods-plugin to 2.5.3 or later.

Who should check

  • Projects that depend on npm package snyk (< 1.1064.0)
  • Projects that depend on npm package snyk-mvn-plugin (< 2.31.3)
  • Projects that depend on npm package snyk-sbt-plugin (< 2.16.2)
  • Projects that depend on npm package snyk-python-plugin (< 1.24.2)
  • Projects that depend on npm package @snyk/snyk-hex-plugin (< 1.1.6)
  • Projects that depend on npm package snyk-gradle-plugin (< 3.24.5)
  • Projects that depend on npm package snyk-docker-plugin (< 5.6.5)
  • Projects that depend on npm package @snyk/snyk-cocoapods-plugin (< 2.5.3)

Vulnerability facts

Affected
snyk < 1.1064.0; snyk-mvn-plugin < 2.31.3; snyk-sbt-plugin < 2.16.2; snyk-python-plugin < 1.24.2; @snyk/snyk-hex-plugin < 1.1.6; snyk-gradle-plugin < 3.24.5; snyk-docker-plugin < 5.6.5; @snyk/snyk-cocoapods-plugin < 2.5.3
Fixed in
1.1064.0, 2.31.3, 2.16.2, 1.24.2, 1.1.6, 3.24.5, 5.6.5, 2.5.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, login needed
CVSS
5.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L/E:POpen in CVSS calculator
Show all 9 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: Low
  • E: P
EPSS
4.19% chance of exploitation in 30 days (percentile 92, 2026-11-26)
CWE
CWE-78
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm snyk< 1.1064.01.1064.0osv
npm snyk-mvn-plugin< 2.31.32.31.3osv
npm snyk-sbt-plugin< 2.16.22.16.2osv
npm snyk-python-plugin< 1.24.21.24.2osv
npm @snyk/snyk-hex-plugin< 1.1.61.1.6osv
npm snyk-gradle-plugin< 3.24.53.24.5osv
npm snyk-docker-plugin< 5.6.55.6.5osv
npm @snyk/snyk-cocoapods-plugin< 2.5.32.5.3osv
snyk>= unspecified, < 1.1064.0—cvelist
snyk-mvn-plugin>= unspecified, < 2.31.3—cvelist
snyk-gradle-plugin>= unspecified, < 3.24.5—cvelist
@snyk/snyk-cocoapods-plugin>= unspecified, < 2.5.3—cvelist
snyk-sbt-plugin>= unspecified, < 2.16.2—cvelist
snyk-python-plugin>= unspecified, < 1.24.2—cvelist
snyk-docker-plugin>= unspecified, < 5.6.5—cvelist
@snyk/snyk-hex-plugin>= unspecified, < 1.1.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-22984. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-22984.md
Affected: snyk < 1.1064.0; snyk-mvn-plugin < 2.31.3; snyk-sbt-plugin < 2.16.2; snyk-python-plugin < 1.24.2; @snyk/snyk-hex-plugin < 1.1.6; snyk-gradle-plugin < 3.24.5; snyk-docker-plugin < 5.6.5; @snyk/snyk-cocoapods-plugin < 2.5.3
Fixed in: 1.1064.0, 2.31.3, 2.16.2, 1.24.2, 1.1.6, 3.24.5, 5.6.5, 2.5.3

Steps:
1. Search this machine and project for snyk (npm), snyk-mvn-plugin (npm), snyk-sbt-plugin (npm), snyk-python-plugin (npm), @snyk/snyk-hex-plugin (npm), snyk-gradle-plugin (npm): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-22984 being exploited?

There is no confirmed exploitation: CVE-2022-22984 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.19% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-22984?

Medium: CVSS 5.0 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2022-22984?

snyk < 1.1064.0; snyk-mvn-plugin < 2.31.3; snyk-sbt-plugin < 2.16.2; snyk-python-plugin < 1.24.2; @snyk/snyk-hex-plugin < 1.1.6; snyk-gradle-plugin < 3.24.5; snyk-docker-plugin < 5.6.5; @snyk/snyk-cocoapods-plugin < 2.5.3.

Is there a fix for CVE-2022-22984?

Yes. Fixed in 1.1064.0, 2.31.3, 2.16.2, 1.24.2, 1.1.6, 3.24.5, 5.6.5, 2.5.3. Upgrade snyk to 1.1064.0 or later. Upgrade snyk-mvn-plugin to 2.31.3 or later. Upgrade snyk-sbt-plugin to 2.16.2 or later. Upgrade snyk-python-plugin to 1.24.2 or later. Upgrade @snyk/snyk-hex-plugin to 1.1.6 or later. Upgrade snyk-gradle-plugin to 3.24.5 or later. Upgrade snyk-docker-plugin to 5.6.5 or later. Upgrade @snyk/snyk-cocoapods-plugin to 2.5.3 or later.

How do I check if I'm affected by CVE-2022-22984?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors