CVE-2024-36694: openCart Server-Side Template Injection (SSTI) vulnerability
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.30451%
CWE
Published
7/17/2024
Updated
12/18/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| opencart/opencart | composer | <= 4.0.2.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in two key components:
- The Theme Editor controller (design/theme) accepts unsanitized user input and writes it directly to template files. This is evidenced by the PoC where Twig syntax {{7*7}} is stored and later executed.
- OpenCart's Twig implementation lacks sandbox mode (as confirmed by the recommended mitigation steps), allowing dangerous functions like 'system' to be called via template filters. The combination of uncontrolled template modification and unsafe template rendering creates an SSTI chain. While the exact line numbers aren't available from sources, the admin theme editor workflow and Twig's role in template execution are clearly implicated based on reproduction steps and CWE-1336 classification.