{"answers":{"affected":"2 open source packages ship an affected version, including snyk. It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-24441 in the wild and no public exploit code.","fix":"Upgrade snyk to 1.1064.0 or later.","what":"CVE-2022-24441 is a medium-severity code injection vulnerability in snyk, published on 30 Nov 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-24441 and fix it if it is affected.\n\nWhat it is: CVE-2022-24441 is a medium-severity code injection vulnerability in snyk, published on 30 Nov 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-24441 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- snyk (npm): affected all versions; fixed in 1.1064.0\n- snyk (npm): affected all versions; fixed in 1.1064.0\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-24441/ (Markdown: https://insights.sbomify.com/CVE-2022-24441/index.md)","id":"CVE-2022-24441","markdown":"https://insights.sbomify.com/CVE-2022-24441/index.md","name":"CVE-2022-24441","record":{"aliases":["GHSA-4vrv-93c7-m92j"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Snyk CLI and IDE plugins","requires_auth":"none","summary":"Attackers can execute arbitrary code via malicious build files when developers scan untrusted projects with Snyk tools.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"snyk_cli","vendor":"snyk"},{"product":"snyk_language_server","vendor":"snyk"},{"product":"snyk_security","vendor":"snyk"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","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 are vulnerable to Code Injection when analyzing a project. An attacker who can convince a user to scan a malicious project can include commands in a build file such as build.gradle or gradle-wrapper.jar, which will be executed with the privileges of the application. This vulnerability may be triggered when running the the CLI tool directly, or when running a scan with one of the IDE plugins that invoke the Snyk CLI. Successful exploitation of this issue would likely require some level of social engineering - to coerce an untrusted project to be downloaded and analyzed via the Snyk CLI or opened in an IDE where a Snyk IDE plugin is installed and enabled. Additionally, if the IDE has a Trust feature then the target folder must be marked as ‘trusted’ in order to be vulnerable. **NOTE:** This issue is independent of the one reported in [CVE-2022-40764](https://security.snyk.io/vuln/SNYK-JS-SNYK-3037342), and upgrading to a fixed version for this addresses that issue as well. The affected IDE plugins and versions are: - VS Code - Affected: \u003c=1.8.0, Fixed: 1.9.0 - IntelliJ - Affected: \u003c=2.4.47, Fixed: 2.4.48 - Visual Studio - Affected: \u003c=1.1.30, Fixed: 1.1.31 - Eclipse - Affected: \u003c=v20221115.132308, Fixed: All subsequent versions - Language Server - Affected: \u003c=v20221109.114426, Fixed: All subsequent versions","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Code Injection","id":"CVE-2022-24441","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":2,"n_references":7,"next":{"headline":"Code injection in n/a","id":"CVE-2022-24442"},"packages":[{"ecosystem":"npm","fixed":["1.1064.0"],"introduced":["0"],"last_affected":[],"package":"snyk","purl":null,"source":"GHSA-4vrv-93c7-m92j"},{"ecosystem":"npm","fixed":["1.1064.0"],"introduced":["0"],"last_affected":[],"package":"snyk","purl":"pkg:npm/snyk","source":"GHSA-4vrv-93c7-m92j"}],"prev":{"headline":"Command Injection","id":"CVE-2022-24440"},"products":["snyk"],"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,"headline":"Command Injection","id":"CVE-2022-22984","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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-24","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via malicious build files when developers scan untrusted projects with Snyk tools.","url":"https://insights.sbomify.com/CVE-2022-24441/"}