Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain admin credentials
-
DeliveryAuthenticate to CubeCart admin panel
-
ExploitEdit Email Template or Document module
-
InstallInject Smarty payload calling native PHP
-
C2readgzfile() leaks config secrets
-
Executeerror_log() writes PHP webshell to webroot
-
ImpactExecute OS commands as web user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must already hold a valid administrator account on the CubeCart admin panel (CVSS PR:H) and reach the admin UI over the network (AV:N) - the vulnerable sinks are template-edit fields in Email Templates, Documents, and other Smarty-rendered admin modules in CubeCart v6 below 6.7.0. No end-user interaction is required (UI:N), no specific non-default configuration is required (the Smarty security policy ships permissive by default), but the PR:H gate means realistic exploitation depends on prior credential compromise, weak admin passwords, or chained access from another vulnerability. PHP environment must expose the abused functions (error_log, readgzfile) - they are part of standard PHP and not disabled by default. |
| Impact | Signals diverge sharply. CVSS 9.1 with Scope:Changed reflects total CIA loss and an authenticated-but-network-reachable admin panel, while EPSS 0.14% (34th percentile) and the absence of CISA KEV listing indicate no observed mass exploitation. SSVC frames it as poc / not automatable / total impact - a high-impact targeted threat, not a worm-grade issue. The PR:H requirement is the dominant limiter: an attacker must already hold administrative credentials, so realistic risk concentrates on shops with weak admin auth, reused/leaked credentials, or post-compromise privilege chains. Treat as high priority for internet-facing CubeCart stores but not on par with unauthenticated RCEs. |
| Exploit ScenarioDerived | An attacker who has phished or credential-stuffed a CubeCart administrator logs into the admin panel and edits an Email Template or Document. They inject a Smarty payload invoking readgzfile() against includes/global.inc.php to dump database credentials, then call error_log('<?php system($_GET[c]); ?>', 3, 'images/.cache/sh.php') to drop a webshell into the document root and execute arbitrary OS commands. No public exploit code is identified at time of analysis, though the technique is described in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Authenticated server-side template injection in CubeCart v6 before 6.7.0 lets administrators escape the Smarty template sandbox and invoke native PHP functions through modules such as Email Templates and Documents. Attackers can call readgzfile() to exfiltrate configuration secrets and error_log() with message_type=3 to drop a PHP webshell, yielding full remote code execution. No public exploit identified at time of analysis, but a SSVC 'poc' status and an upstream commit hardening the Smarty allowlist indicate the technique is documented.
RemediationAI
Vendor-released patch: upgrade to CubeCart 6.7.0, which extends the CubeCart_Smarty_Security disabled-function list to cover error_log, readgzfile, gzopen, simplexml_load_file, glob/scandir, and process-control functions as shown in commit 76d783c8c4d87a8a90dbfef1344a2733e7c6434c. Until the upgrade is applied, restrict the /admin path to known administrator IPs via web server ACLs (trade-off: blocks legitimate remote admin sessions), enforce MFA on all administrator accounts since exploitation requires PR:H, and audit Email Templates, Documents, and other Smarty-driven content for unexpected {php}, error_log, or readgzfile usage. Refer to https://github.com/cubecart/v6/security/advisories/GHSA-wpjx-g695-qc5j for the full advisory.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CubeCart is a PHP ecommerce platform that renders administrative UI through the Smarty template engine wrapped by a CubeCart_Smarty_Security class. The root cause is CWE-94 (Code Injection): the security policy's disabled-function list did not block PHP primitives that can read or write arbitrary paths through Smarty's {php}-style or modifier syntax. The fix commit (76d783c) extends the blocklist to include error_log, readgzfile, gzfile, gzopen, simplexml_load_file (which honors php:// and file:// stream wrappers), glob/scandir/opendir, fileowner/filegroup/fileperms, dns_get_record, and pcntl_/posix_ process-control calls - confirming the abuse surface was native PHP exposed through Smarty rather than a parser bug.
Know when Cubecart gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
2DescriptionGitHub 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 and Documents). The application unsafely evaluates user-supplied input directly through the Smarty template engine. By leveraging this, an authenticated attacker with administrative privileges can bypass current restrictions and call native PHP functions within the templates, such as readgzfile() to read sensitive configuration files, or error_log() to write a malicious PHP web shell, ultimately achieving Information Disclosure and full Remote Code Execution (RCE). This vulnerability is fixed in 6.7.0.
Executive ViewAI
CubeCart v6 before version 6.7.0 contains a critical server-side template injection vulnerability accessible to administrators, enabling remote code execution through template and document functions. Organizations running vulnerable CubeCart versions face insider abuse or compromised admin account exploitation risks leading to full system compromise.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
Authenticated SQL injection in CubeCart before 6.7.5 allows an administrator with access to the admin settings page to m
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 cross-site scripting in CubeCart versions prior to 6.7.5 allows unauthenticated remote attackers to execute Ja
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
EUVD-2026-30165
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB