{"id":"CVE-2022-0764","aliases":["CVE-2022-0764","GHSA-xrjf-phvv-r4vr"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Command Injection in strapi/strapi","summary":"Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Inyección Arbitraria de Comandos en el repositorio de GitHub strapi/strapi versiones anteriores a 4.1.0.","source":"nvd"}],"published":"2022-02-26T14:55:09.000Z","modified":"2026-06-17T04:21:12.133Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","score":7.2,"rating":"HIGH"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.1.0","status":"affected"}],"vendor":"strapi","product":"strapi/strapi","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.0"}],"ecosystem":"npm","package":"strapi","purl":"pkg:npm/strapi","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.0"}],"vendor":"strapi","product":"strapi","cpe":"cpe:2.3:a:strapi:strapi:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/001d1c29-805a-4035-93bb-71a0e81da3e5","tags":["exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/strapi/strapi/issues/12879","tags":["issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0764","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/strapi/strapi","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/strapi/strapi/blob/master/packages/generators/app/lib/utils/fetch-npm-template.js#L13","tags":["web"],"sources":["ghsa"]},{"url":"https://www.github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0764","url":"https://www.cve.org/CVERecord?id=CVE-2022-0764","licence":"CVE Terms of Use","modified":"2024-08-02T23:40:03.819Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xrjf-phvv-r4vr","url":"https://github.com/advisories/GHSA-xrjf-phvv-r4vr","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:40.230Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0764","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0764","licence":"Public domain","modified":"2026-06-17T04:21:12.133Z"}],"updatedAt":"2026-11-25T22:58:09.858Z","epss":{"score":0.00734,"percentile":0.55635,"date":"2026-12-01T12:00:22.000Z"}}