CVE-2017-20064: Code injection in Elefant CMS
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5799%
CWE
Published
6/21/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| elefant/cms | composer | < 1.3.13 | 1.3.13 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in template processing where user input containing {{passthru('id')}} gets executed as PHP code. This indicates: 1) The template engine improperly evaluates PHP constructs in user-controlled layout content 2) The handler responsible for /designer/add/layout endpoint fails to sanitize or restrict executable syntax 3) The presence of dangerous functions like eval() or similar dynamic code execution mechanisms in the template parsing logic. While exact code isn't available, the PoC and CWE-94 classification confirm unvalidated code generation from user input.