CVE-2022-0764
Arbitrary Command Injection in strapi/strapi
Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- High
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.1
Arbitrary Command Injection in strapi/strapi
Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.
- Record
CVE-2022-0764- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L - Weakness
- CWE-78
- Updated
- 2026-11-02
EUVDEUVD-2022-1258
6.1
Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.
- Record
EUVD-2022-1258- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xrjf-phvv-r4vr
6.1
Command injection in strapi
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, this happens due to improper sanitization of user input.
- Record
GHSA-xrjf-phvv-r4vr- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L - Weakness
- CWE-77, CWE-78
- Updated
- 2026-11-02
NVD
6.7
Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.
- Record
CVE-2022-0764- CVSS 3.1
- 6.7 Medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L - CVSS 2.0
- 7.2 High
AV:L/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
6.1
Arbitrary Command Injection in strapi/strapi
Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.
- Record
CVE-2022-0764- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L - Weakness
- CWE-78
- Updated
- 2026-11-02
OSVGHSA-xrjf-phvv-r4vr
6.1
Command injection in strapi
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, this happens due to improper sanitization of user input.
- Record
GHSA-xrjf-phvv-r4vr- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L - Weakness
- CWE-77, CWE-78
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
strapinpm |
before 4.1.0 | 4.1.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-0764 is a medium vulnerability (CVSS 6.1) in Strapi, published February 26, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.73%, the 54th percentile. Fixed in strapi 4.1.0.
References
huntr.dev/bounties/001d1c29-805a-4035-93bb-71a0e81da3e5
github.com/strapi/strapi/commit/2a3f5e988be6a2c7dae5ac22b9e86d579b462f4c
github.com/strapi/strapi/issues/12879
nvd.nist.gov/vuln/detail/CVE-2022-0764
github.com/strapi/strapi/blob/master/packages/generators/app/lib/utils/fetch-npm-template.js
github.com/advisories/GHSA-xrjf-phvv-r4vr
github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0764.json
github.com/strapi/strapi