Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
CubeCart is an ecommerce software solution. Prior to 6.7.0, an Authenticated Server-Side Template Injection (SSTI) vulnerability exists in multiple modules of CubeCart (including Email Templates, Invoices, Documents, and Contact Forms). The application unsafely evaluates user-supplied input using the Smarty template engine without enabling Smarty Security Policies. This allows any authenticated user with administrative privileges to execute arbitrary operating system commands (RCE) on the server. This vulnerability is fixed in 6.7.0.
AnalysisAI
Authenticated server-side template injection in CubeCart v6 prior to 6.7.0 allows administrative users to achieve remote code execution by injecting Smarty template syntax into multiple admin-facing modules including Email Templates, Invoices, Documents, and Contact Forms. The flaw stems from evaluating user-supplied content through the Smarty engine without enabling Smarty Security Policies, granting OS-level command execution on the underlying server. Currently no public exploit identified at time of analysis, EPSS is very low at 0.04%, and the issue is not on CISA KEV.
Technical ContextAI
CubeCart is a PHP-based open-source ecommerce platform that uses the Smarty templating engine to render storefront and backoffice content such as transactional emails, PDF invoices, downloadable documents, and customer-facing forms. Smarty supports a Security Policy mode that restricts which PHP functions, modifiers, and tags templates may invoke; when this policy is not enabled, template syntax like {php}, {if}, or modifiers can be abused to reach native PHP and execute system commands. The CWE-94 (Improper Control of Generation of Code / Code Injection) root cause here is that admin-supplied template bodies are passed directly into Smarty's parse-and-execute pipeline without sandboxing, turning template editors into code editors. The affected component is identified by CPE cpe:2.3:a:cubecart:v6:*:*:*:*:*:*:*:* covering the v6 branch.
RemediationAI
Apply the vendor-released patch by upgrading CubeCart v6 to version 6.7.0 or later, which is the fix identified in advisory GHSA-pcfr-xgc9-xfv6 (https://github.com/cubecart/v6/security/advisories/GHSA-pcfr-xgc9-xfv6). For deployments that cannot upgrade immediately, restrict administrative panel access by IP allowlist or VPN to limit who can reach the vulnerable template editors, enforce strong unique credentials and multi-factor authentication on all admin accounts, and audit the admin user list to remove unused or over-privileged accounts - these reduce the credentialed attack surface but do not remove the underlying SSTI. As a code-level workaround, an operator with PHP skills can enable Smarty's Security Policy on the affected template handlers to block {php} tags and unsafe modifiers, though this may break custom templates that rely on those features and should be tested against existing email and invoice content before rollout.
The Cubecart::_basket method in classes/cubecart.class.php in CubeCart 5.0.0 through 5.2.0 allows remote attackers to un
Directory Traversal vulnerability in CubeCart v.6.5.5 and before allows an attacker to execute arbitrary code via a craf
Multiple open redirect vulnerabilities in CubeCart 3.0.20 and earlier allow remote attackers to redirect users to arbitr
File Upload vulnerability in CubeCart before 6.5.5 allows an authenticated user to execute arbitrary code via a crafted
Session fixation vulnerability in CubeCart before 5.2.9 allows remote attackers to hijack web sessions via the PHPSESSID
classes/admin.class.php in CubeCart 5.2.12 through 5.2.16 and 6.x before 6.0.7 does not properly validate that a passwor
CubeCart is an ecommerce software solution. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable
Reflected XSS in CubeCart v6 (prior to 6.7.0) enables unauthenticated remote attackers to execute arbitrary JavaScript i
CubeCart is an ecommerce software solution. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable
CubeCart is an ecommerce software solution. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable
Cubecart 6.4.2 allows Session Fixation. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, lo
Remote code execution in CubeCart v6 prior to 6.7.0 allows API key holders with files:rw permission to upload PHP webshe
Same weakness CWE-94 – Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-30176