CVE-2023-46845: EC-CUBE - Server-Side Template Injection
- Cve: CVE-2023-46845
- Name: EC-CUBE - Server-Side Template Injection
- Description: EC-CUBE 3 series (3.0.0 to 3.0.18-p6) and 4 series (4.0.0 to 4.0.6-p3, 4.1.0 to 4.1.2-p2, and 4.2.0 to 4.2.2) contain an arbitrary code execution vulnerability due to improper settings of the template engine Twig included in the product. As a result, arbitrary code may be executed on the server where the product is running by a user with an administrative privilege.
- Impact: Attackers with admin privileges can execute arbitrary code on the server, potentially leading to full system compromise.
- Remediation: Update to the latest version of EC-CUBE where the issue is fixed or reconfigure Twig settings securely.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker needs admin privileges
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01726
- Epss percentile: 0.78149
- Assignee: [email protected]
- Published at: 2023-11-07T08:15:24Z
- Age in days: 1113
- Modified at: 2026-06-17T06:31:44Z
- Patch available: yes
- Public exploits total: 3
- References total: 4
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-46845
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Public exploits
Same in every row:
- Source: nvd
- Added date: 2023-11-07
| Url |
|---|
| https://www.ec-cube.net/info/weakness/20231026/index.php |
| https://www.ec-cube.net/info/weakness/20231026/index_3.php |
| https://www.ec-cube.net/info/weakness/20231026/index_40.php |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.ec-cube.net/info/weakness/20231026/index.php | Exploit, Patch, Vendor Advisory |
| https://www.ec-cube.net/info/weakness/20231026/index_3.php | Exploit, Patch, Vendor Advisory |
| https://www.ec-cube.net/info/weakness/20231026/index_40.php | Exploit, Patch, Vendor Advisory |
| https://jvn.jp/en/jp/JVN29195731/ | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ec-cube:ec-cube | = 3.0.18 p6; = 3.0.18 p5; >= 4.2.0, < 4.2.3; = 4.1.2 p1; = 4.1.2 p2; >= 4.1.0, <= 4.1.2; = 4.0.6 p1; = 4.0.6 p2; = 4.0.6 p3; >= 4.0.0, <= 4.0.6; = 3.0.18 p4; = 3.0.18 p1; = 3.0.18 p2; = 3.0.18 p3; >= 3.0.0, <= 3.0.18 | no | nvd | /v1/products/ec-cube/ec-cube |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 3
- Public exploit first date: 2023-11-07
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts