cve.bz

CVE-2022-22984 snyk: OS Command Injection

6.3 mediumExploit referenceEPSS 3.2%Fix available

Medium (6.3) in snyk. EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in snyk 1.1064.0.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS
3.2% (unchanged from 3.2% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-22984 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-22984?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-22984?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-22984 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
snyk:snyk_clibefore 1.1064.0
snyk:snyk_cocoapods_clibefore 2.5.3
snyk:snyk_docker_clibefore 5.6.5
snyk:snyk_gradle_clibefore 3.24.5
snyk:snyk_hex_clibefore 1.1.6
snyk:snyk_maven_clibefore 2.31.3
snyk:snyk_python_clibefore 1.24.2
snyk:snyk_sbt_clibefore 2.16.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4x6g-3cmx-w76rnpmsnyk<1.1064.01.1064.0
GHSA-4x6g-3cmx-w76rnpmsnyk-mvn-plugin<2.31.32.31.3
GHSA-4x6g-3cmx-w76rnpmsnyk-sbt-plugin<2.16.22.16.2
GHSA-4x6g-3cmx-w76rnpmsnyk-python-plugin<1.24.21.24.2
GHSA-4x6g-3cmx-w76rnpm@snyk/snyk-hex-plugin<1.1.61.1.6
GHSA-4x6g-3cmx-w76rnpmsnyk-gradle-plugin<3.24.53.24.5
GHSA-4x6g-3cmx-w76rnpmsnyk-docker-plugin<5.6.55.6.5
GHSA-4x6g-3cmx-w76rnpm@snyk/snyk-cocoapods-plugin<2.5.32.5.3

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Will not fix
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-22984.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON