CVE-2021-27903 Craft CMS Remote Code Injection
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.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | All versions | 3.6.7 |
craftcms/cms Packagist | All versions | 3.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.
Other vulnerabilities in Craftcms Craft Cms
Sources
Also known as GHSA-x2j7-6hxm-87p3.