CVE-2018-16975 Elefant CMS PHP Code Execution Vulnerability
Attacker can execute arbitrary PHP code via stylesheet name field in Elefant CMS due to insufficient input validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-16975?
CVE-2018-16975 is a critical code injection vulnerability in n/a, published on 12 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in /designer/add/stylesheet.php by using a .php extension in the New Stylesheet Name field in conjunction with <?php content, because of insufficient input validation in apps/designer/handlers/csspreview.php.
Weakness: CWE-94
Which versions are affected by CVE-2018-16975?
2 open source packages ship an affected version, including elefant/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
elefant/cms Packagist | All versions | 2.0.7 |
elefant/cms Packagist | All versions | 2.0.7 |
Products include Elefantcms Elefant.
How do I fix CVE-2018-16975?
Upgrade elefant/cms to 2.0.7 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-16975 being exploited?
There is no known exploitation of CVE-2018-16975 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-x2w2-qgv6-8xrm.