CVE-2018-16975: Elefant CMS PHP Code Execution Vulnerability

elefant/cms Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Critical
9.8

CVE-2018-16975: Elefant CMS PHP Code Execution Vulnerability. Affects elefant/cms versions < 2.0.7. Fixed in 2.0.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Elefant CMS is an open-source content management system written in PHP. It provides a user-friendly interface for managing website content and includes features such as page editing, template customization, and plugin support. The vulnerability identified as CVE-2018-16975 affects Elefant CMS versions prior to 2.0.7. This vulnerability allows an attacker to execute arbitrary PHP code by exploiting insufficient input validation in the 'csspreview.php' file, which is used by the 'stylesheet.php' endpoint in the 'designer' module.

Vulnerability Detail

The vulnerability arises due to the lack of proper input validation in the 'csspreview.php' file. An attacker can exploit this by submitting a new stylesheet name with a '.php' extension and including PHP code within the content. When the 'stylesheet.php' endpoint processes this input, it fails to adequately validate the content, allowing the execution of arbitrary PHP code. This can lead to various consequences, including unauthorized access, data manipulation, and remote code execution on the affected system.

How To Fix

Minimum fixed version

2.0.7

This is the first release that contains the fix.

composer require elefant/cms:2.0.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can disable the 'designer' module in Elefant CMS to mitigate the risk of exploitation. This can be done by modifying the configuration file or disabling the module through the CMS administration interface. However, it is strongly recommended to apply the official patch by updating to the latest version of Elefant CMS as soon as possible.

Conclusion

The Elefant CMS PHP Code Execution Vulnerability (CVE-2018-16975) is a critical security issue that allows an attacker to execute arbitrary PHP code on vulnerable systems. To mitigate the risk, users should update their Elefant CMS installation to version 2.0.7 or later. Additionally, temporarily disabling the 'designer' module can provide a workaround until the update is applied. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for elefant/cms →

Share this vulnerability

FAQ

Elefant CMS is an open-source content management system written in PHP. It provides a user-friendly interface for managing website content and includes features such as page editing, template customization, and plugin support.

This vulnerability allows an attacker to execute arbitrary PHP code on a system running an outdated version of Elefant CMS. This can lead to unauthorized access, data manipulation, and remote code execution.

To fix this vulnerability, users should update their Elefant CMS installation to version 2.0.7 or later. This version includes a patch that addresses the vulnerability.

As a temporary workaround, users can disable the 'designer' module in Elefant CMS to mitigate the risk of exploitation. However, it is recommended to apply the official patch by updating to the latest version.

More information about Elefant CMS can be found on the official website and the project's GitHub repository.

Related vulnerabilities

Recent vulnerabilities recorded for elefant/cms.

How To Fix

Minimum fixed version

2.0.7

This is the first release that contains the fix.

composer require elefant/cms:2.0.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback