Skip to content

Command injection in strapi

Moderate severity GitHub Reviewed Published Feb 27, 2022 to the GitHub Advisory Database • Updated Feb 3, 2023

Package

npm strapi (npm)

Affected versions

< 4.1.0

Patched versions

4.1.0

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, this happens due to improper sanitization of user input.

References

Published by the National Vulnerability Database Feb 26, 2022
Published to the GitHub Advisory Database Feb 27, 2022
Reviewed Mar 1, 2022
Last updated Feb 3, 2023

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L

CVE ID

CVE-2022-0764

GHSA ID

GHSA-xrjf-phvv-r4vr

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.