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
4DescriptionGitHub 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.
AnalysisAI
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.
Technical ContextAI
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.
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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-94 – Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-30165