{"id":"CVE-2022-24441","published":"2022-11-30T00:00:00Z","modified":"2025-04-24T19:54:51Z","title":"Code Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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: <=1.8.0, Fixed: 1.9.0 - IntelliJ - Affected: <=2.4.47, Fixed: 2.4.48 - Visual Studio - Affected: <=1.1.30, Fixed: 1.1.31 - Eclipse - Affected: <=v20221115.132308, Fixed: All subsequent versions - Language Server - Affected: <=v20221109.114426, Fixed: All subsequent versions","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00791,"percentile":0.57217,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SNYK-3111871","tags":[]},{"url":"https://www.imperva.com/blog/how-scanning-your-projects-for-security-issues-can-lead-to-remote-code-execution/","tags":[]},{"url":"https://github.com/snyk/vscode-extension/commit/0db3b4240be0db6a0a5c6d02c0d4231a2c4ba708","tags":[]},{"url":"https://github.com/snyk/snyk-intellij-plugin/commit/56682f4ba6081ce1d95cb980cbfacd3809a826f4","tags":[]},{"url":"https://github.com/snyk/snyk-visual-studio-plugin/commit/0b53dbbd4a3153c3ef9aaf797af3b5caad0f731a","tags":[]},{"url":"https://github.com/snyk/snyk-eclipse-plugin/commit/b5a8bce25a359ced75f83a729fc6b2393fc9a495","tags":[]},{"url":"https://github.com/snyk/snyk-ls/commit/b3229f0142f782871aa72d1a7dcf417546d568ed","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":11.44},{"name":"CVSS severity","points":4.06}]},"affectedVersions":[{"vendor":"n/a","product":"snyk","versions":[">= unspecified, < 1.1064.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-24T19:54:47.679411Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"snyk","vulnerableRanges":["<1.1064.0"],"patched":["1.1064.0"],"from":["GHSA-4vrv-93c7-m92j"],"provenance":"source"}],"summary":{"text":"The Snyk package before 1.1064.0 (and the Snyk IDE plugins and Language Server that invoke the Snyk CLI) contains a code injection flaw in how it analyzes a project. An attacker who can get a user to scan or open a malicious project can embed commands in a build file such as build.gradle or gradle-wrapper.jar, which then run with the application's privileges; exploitation requires user interaction, and if the IDE has a Trust feature the target folder must be marked trusted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:44Z"},"euvd":{"id":"EUVD-2023-1960","exploited":false,"provenance":"source"},"lineage":{"children":[{"from":"CVE-2022-24441","to":"CVE-2024-50611","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"CycloneDX cdxgen through 10.10.7, when run against an untrusted codebase, may execute code contained within build-related files such as build.gradle.kts, a similar issue to CVE-2022-24441. cdxgen is used by, for example, OWASP dep-scan.","from":"CVE.org","in":"CVE-2024-50611"}]}],"packageHistory":[{"cve":"CVE-2022-40764","published":"2022-10-03","fixed":"1.996.0","kev":false,"link":{"from":"CVE-2022-40764","to":"CVE-2022-24441","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:snyk","fromFixed":"1.996.0","toFixed":"1.1064.0","daysApart":58},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same package + description similarity"}]}},{"cve":"CVE-2022-22984","published":"2022-11-30","fixed":"1.1064.0","kev":false},{"cve":"CVE-2022-24441","published":"2022-11-30","fixed":"1.1064.0","kev":false},{"cve":"CVE-2025-6624","published":"2025-06-26","fixed":"1.1297.3","kev":false}],"package":"npm:snyk"}}