{"answers":{"affected":"16 open source packages ship an affected version, including @snyk/snyk-cocoapods-plugin, @snyk/snyk-hex-plugin and snyk. It affects 8 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-22984 exists.","fix":"Upgrade @snyk/snyk-cocoapods-plugin to 2.5.3 or later.","what":"CVE-2022-22984 is a medium-severity command injection vulnerability in @snyk/snyk-cocoapods-plugin, published on 30 Nov 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-22984 and fix it if it is affected.\n\nWhat it is: CVE-2022-22984 is a medium-severity command injection vulnerability in @snyk/snyk-cocoapods-plugin, published on 30 Nov 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-22984 exists.\n\nAffected packages and fixed versions:\n- @snyk/snyk-cocoapods-plugin (npm): affected all versions; fixed in 2.5.3\n- @snyk/snyk-cocoapods-plugin (npm): affected all versions; fixed in 2.5.3\n- @snyk/snyk-hex-plugin (npm): affected all versions; fixed in 1.1.6\n- @snyk/snyk-hex-plugin (npm): affected all versions; fixed in 1.1.6\n- snyk (npm): affected all versions; fixed in 1.1064.0\n- snyk (npm): affected all versions; fixed in 1.1064.0\n- snyk-docker-plugin (npm): affected all versions; fixed in 5.6.5\n- snyk-docker-plugin (npm): affected all versions; fixed in 5.6.5\n- snyk-gradle-plugin (npm): affected all versions; fixed in 3.24.5\n- snyk-gradle-plugin (npm): affected all versions; fixed in 3.24.5\n- snyk-mvn-plugin (npm): affected all versions; fixed in 2.31.3\n- snyk-mvn-plugin (npm): affected all versions; fixed in 2.31.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-22984/ (Markdown: https://insights.sbomify.com/CVE-2022-22984/index.md)","id":"CVE-2022-22984","markdown":"https://insights.sbomify.com/CVE-2022-22984/index.md","name":"CVE-2022-22984","record":{"aliases":["GHSA-4x6g-3cmx-w76r"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Snyk CLI plugins","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary commands on the host system by passing crafted flags to the Snyk CLI when testing untrusted files.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"snyk_cli","vendor":"snyk"},{"product":"snyk_cocoapods_cli","vendor":"snyk"},{"product":"snyk_docker_cli","vendor":"snyk"},{"product":"snyk_gradle_cli","vendor":"snyk"},{"product":"snyk_hex_cli","vendor":"snyk"},{"product":"snyk_maven_cli","vendor":"snyk"},{"product":"snyk_python_cli","vendor":"snyk"},{"product":"snyk_sbt_cli","vendor":"snyk"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Command Injection","id":"CVE-2022-22984","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":16,"n_references":17,"next":{"headline":"ICSA-22-062-01 IPCOMM ipDIO","id":"CVE-2022-22985"},"packages":[{"ecosystem":"npm","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"@snyk/snyk-cocoapods-plugin","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"@snyk/snyk-cocoapods-plugin","purl":"pkg:npm/%40snyk/snyk-cocoapods-plugin","source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["1.1.6"],"introduced":["0"],"last_affected":[],"package":"@snyk/snyk-hex-plugin","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["1.1.6"],"introduced":["0"],"last_affected":[],"package":"@snyk/snyk-hex-plugin","purl":"pkg:npm/%40snyk/snyk-hex-plugin","source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["1.1064.0"],"introduced":["0"],"last_affected":[],"package":"snyk","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["1.1064.0"],"introduced":["0"],"last_affected":[],"package":"snyk","purl":"pkg:npm/snyk","source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["5.6.5"],"introduced":["0"],"last_affected":[],"package":"snyk-docker-plugin","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["5.6.5"],"introduced":["0"],"last_affected":[],"package":"snyk-docker-plugin","purl":"pkg:npm/snyk-docker-plugin","source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["3.24.5"],"introduced":["0"],"last_affected":[],"package":"snyk-gradle-plugin","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["3.24.5"],"introduced":["0"],"last_affected":[],"package":"snyk-gradle-plugin","purl":"pkg:npm/snyk-gradle-plugin","source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["2.31.3"],"introduced":["0"],"last_affected":[],"package":"snyk-mvn-plugin","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["2.31.3"],"introduced":["0"],"last_affected":[],"package":"snyk-mvn-plugin","purl":"pkg:npm/snyk-mvn-plugin","source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["1.24.2"],"introduced":["0"],"last_affected":[],"package":"snyk-python-plugin","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["1.24.2"],"introduced":["0"],"last_affected":[],"package":"snyk-python-plugin","purl":"pkg:npm/snyk-python-plugin","source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["2.16.2"],"introduced":["0"],"last_affected":[],"package":"snyk-sbt-plugin","purl":null,"source":"GHSA-4x6g-3cmx-w76r"},{"ecosystem":"npm","fixed":["2.16.2"],"introduced":["0"],"last_affected":[],"package":"snyk-sbt-plugin","purl":"pkg:npm/snyk-sbt-plugin","source":"GHSA-4x6g-3cmx-w76r"}],"prev":{"headline":"Information disclosure in VMware Workstation","id":"CVE-2022-22983"},"products":["@snyk/snyk-cocoapods-plugin","@snyk/snyk-hex-plugin","snyk","snyk-docker-plugin","snyk-gradle-plugin","snyk-mvn-plugin","snyk-python-plugin","snyk-sbt-plugin"],"published":"2022-11-30","related":[{"cvss_score":7.5,"headline":"OS Command Injection in Snyk php plugin","id":"CVE-2024-48963","kev_date_added":null,"published":"2024-10-23"},{"cvss_score":7.5,"headline":"OS Command Injection in Snyk gradle plugin","id":"CVE-2024-48964","kev_date_added":null,"published":"2024-10-23"},{"cvss_score":5.8,"headline":"Code Injection","id":"CVE-2022-24441","kev_date_added":null,"published":"2022-11-30"},{"cvss_score":2.4,"headline":"Snyk CLI Insertion of Sensitive Information into Log File allowed in DEBUG or DEBUG/TRACE mode","id":"CVE-2025-6624","kev_date_added":null,"published":"2025-06-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-25","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands on the host system by passing crafted flags to the Snyk CLI when testing untrusted files.","url":"https://insights.sbomify.com/CVE-2022-22984/"}