CVE-2018-16975 Elefant CMS PHP Code Execution Vulnerability

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
elefant/cms PackagistAll versions2.0.7
elefant/cms PackagistAll versions2.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.

Sources

Also known as GHSA-x2w2-qgv6-8xrm.

Is CVE-2018-16975 in your software?

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

Check your SBOMs for free