{"id":"GHSA-xrjf-phvv-r4vr","summary":"Command injection in strapi","details":"When creating a strapi app using npxcreate-strapi-app, we can inject arbitrary commands through the template cli argument as per the code in this particular [link](https://github.com/strapi/strapi/blob/master/packages/generators/app/lib/utils/fetch-npm-template.js#L13), this happens due to improper sanitization of user input.","aliases":["CVE-2022-0764"],"modified":"2023-11-08T04:07:40.230520Z","published":"2022-02-27T00:00:15Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-03-01T21:42:15Z","nvd_published_at":"2022-02-26T15:15:00Z","cwe_ids":["CWE-77","CWE-78"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0764"},{"type":"WEB","url":"https://github.com/strapi/strapi/issues/12879"},{"type":"WEB","url":"https://github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c"},{"type":"PACKAGE","url":"https://github.com/strapi/strapi"},{"type":"WEB","url":"https://github.com/strapi/strapi/blob/master/packages/generators/app/lib/utils/fetch-npm-template.js#L13"},{"type":"WEB","url":"https://huntr.dev/bounties/001d1c29-805a-4035-93bb-71a0e81da3e5"},{"type":"WEB","url":"https://www.github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c"}],"affected":[{"package":{"name":"strapi","ecosystem":"npm","purl":"pkg:npm/strapi"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-xrjf-phvv-r4vr/GHSA-xrjf-phvv-r4vr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L"}]}