Improper Control of Generation of Code ('Code Injection') Affecting elefant/cms package, versions <2.2.7


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.54% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-ELEFANTCMS-6673159
  • published24 Apr 2024
  • disclosed13 May 2022
  • creditxijun.liao

Introduced: 13 May 2022

CVE-2018-16975  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade elefant/cms to version 2.2.7 or higher.

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') due to insufficient input validation in csspreview.php. An attacker can execute arbitrary code by using a .php extension in the New Stylesheet Name field in conjunction with <?php content.

CVSS Scores

version 3.1