CVE-2021-27903 Craft CMS Remote Code Injection

Critical 9.8 Published Updated

Attackers can execute arbitrary code on Craft CMS sites if administrative restrictions are not configured, requiring a session hijack.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-27903?

CVE-2021-27903 is a critical code injection vulnerability in Craftcms Craft Cms, published on 30 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Craft CMS before 3.6.7. In some circumstances, a potential Remote Code Execution vulnerability existed on sites that did not restrict administrative changes (if an attacker were somehow able to hijack an administrator's session).

Weakness: CWE-862

Which versions are affected by CVE-2021-27903?

2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.

PackageAffectedFixed in
craftcms/cms PackagistAll versions3.6.7
craftcms/cms PackagistAll versions3.6.7

Products include Craftcms Craft Cms.

How do I fix CVE-2021-27903?

Upgrade craftcms/cms to 3.6.7 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-27903 being exploited?

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

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-x2j7-6hxm-87p3.

Is CVE-2021-27903 in your software?

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

Check your SBOMs for free