{"id":"CVE-2022-0764","aliases":["EUVD-2022-1258","GHSA-xrjf-phvv-r4vr"],"status":"published","title":"Arbitrary Command Injection in strapi/strapi","description":"Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00734,"percentile":0.54672,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-78"],"published":"2022-02-26T14:55:09Z","modified":"2026-10-28T02:30:34Z","fixes":[{"ecosystem":"npm","package":"strapi","fixed_in":["4.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"strapi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0"}]}]},{"source":"osv","ecosystem":"npm","package":"strapi","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.1.0"}]}]}],"products":[{"vendor":"strapi","product":"strapi"},{"vendor":"strapi","product":"strapi/strapi"}],"references":[{"url":"https://huntr.dev/bounties/001d1c29-805a-4035-93bb-71a0e81da3e5","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/strapi/strapi/issues/12879","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0764","tags":["advisory"]},{"url":"https://github.com/strapi/strapi/blob/master/packages/generators/app/lib/utils/fetch-npm-template.js#L13","tags":["web"]},{"url":"https://www.github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xrjf-phvv-r4vr"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0764.json","tags":["advisory"]},{"url":"https://github.com/strapi/strapi","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-0764","title":"Arbitrary Command Injection in strapi/strapi","description":"Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.","status":"published","published":"2022-02-26T14:55:09Z","modified":"2024-08-02T23:40:03.819Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:34:42.028422Z"}],"euvd":[{"id":"EUVD-2022-1258","description":"Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.","status":"published","published":"2022-02-26T14:55:09Z","modified":"2024-08-02T23:40:03Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"updated_at":"2026-11-03T03:26:03.912978Z"}],"ghsa":[{"id":"GHSA-xrjf-phvv-r4vr","title":"Command injection in strapi","description":"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.","status":"published","published":"2022-02-27T00:00:15Z","modified":"2023-02-03T05:06:25Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:36:43.439065Z"}],"nvd":[{"id":"CVE-2022-0764","description":"Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.","status":"published","published":"2022-02-26T15:15:07.91Z","modified":"2026-06-17T04:21:12.133Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"primary"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","level":"medium","assessor":"secondary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:07:12.711288Z"}],"osv":[{"id":"CVE-2022-0764","title":"Arbitrary Command Injection in strapi/strapi","description":"Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.","status":"published","published":"2022-02-26T14:55:09Z","modified":"2026-10-28T02:30:34.362587239Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:44:22.824781Z"},{"id":"GHSA-xrjf-phvv-r4vr","title":"Command injection in strapi","description":"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.","status":"published","published":"2022-02-27T00:00:15Z","modified":"2023-11-08T04:07:40.23052Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T15:47:00.198893Z"}]}}
