CVE-2022-0764 Arbitrary Command Injection in strapi/strapi

Medium 6.1 Published Updated

Attackers can execute arbitrary commands on the server hosting the Strapi CMS, leading to full system compromise.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-0764?

CVE-2022-0764 is a medium-severity command injection vulnerability in strapi/strapi, published on 26 Feb 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Arbitrary Command Injection in GitHub repository strapi/strapi prior to 4.1.0.

Weakness: CWE-78

Which versions are affected by CVE-2022-0764?

2 open source packages ship an affected version, including strapi. It affects 1 product.

PackageAffectedFixed in
strapi npmAll versions4.1.0
strapi npmAll versions4.1.0

Products include Strapi Strapi.

How do I fix CVE-2022-0764?

Upgrade strapi to 4.1.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-0764 being exploited?

There is no known exploitation of CVE-2022-0764 in the wild and no public exploit code.

Sources

Also known as GHSA-xrjf-phvv-r4vr.

Is CVE-2022-0764 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free