Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain API key with files:rw scope
-
DeliveryCraft POST to /api/v1/files with PHP payload
-
ExploitInject path traversal in filepath parameter
-
ExecutionWrite webshell to document root
-
PersistRequest webshell URL
-
ImpactExecute commands as webserver user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must possess a valid CubeCart REST API key with the files:rw permission scope; the vulnerable POST /api/v1/files endpoint must be reachable from the attacker's network position; the deployment must run a version of CubeCart v6 below 6.7.0 with the REST API enabled; and the webserver process must have write access to a PHP-executable directory (default installations satisfy this for images/source/ and typically the document root). Limiting factors: PR:H means no anonymous exploitation is possible, so installations that do not issue files:rw API keys, restrict the REST API to internal networks, or run the webserver as a low-privilege user with a read-only document root materially reduce exposure. No user interaction is required (UI:N). |
| Impact | CVSS 9.1 reflects network attack vector, low complexity, no user interaction, and total CIA impact, but PR:H (high privileges required) means the attacker must already hold an API key with files:rw scope - a meaningful gate that downgrades real-world risk versus pre-auth RCE bugs of similar score. EPSS of 0.19% (40th percentile) is low and aligns with SSVC's 'Automatable: no' and POC-only exploitation status, suggesting this is not currently a mass-exploitation target. Not listed in CISA KEV, so no confirmed active exploitation. Scope:Changed plus Technical Impact:Total indicate that once exploited, blast radius extends beyond the application (full webserver compromise), making this a high priority specifically for CubeCart operators who issue API keys to third parties, integrators, or staff with broad permissions. |
| Exploit ScenarioDerived | An attacker who has obtained a valid API key with files:rw permission - through a leaked integration credential, a compromised staff account, or a careless third-party integration - sends a single authenticated POST to /api/v1/files with a PHP payload and a filepath value containing '../' sequences pointing at the document root. The server writes the file (e.g., shell.php) into a web-served directory, and the attacker fetches it to gain code execution as the webserver user. A POC is referenced in SSVC data, increasing the likelihood that working exploit code circulates within researcher channels. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Remote code execution in CubeCart v6 prior to 6.7.0 allows API key holders with files:rw permission to upload PHP webshells via the POST /api/v1/files REST endpoint. A path-traversal flaw in the filepath parameter lets attackers write executable files anywhere the webserver can write, including the document root, achieving full server takeover. No public exploit identified at time of analysis, though SSVC notes a POC and EPSS sits at 0.19% (40th percentile).
RemediationAI
Vendor-released patch: upgrade to CubeCart 6.7.0 or later, per advisory GHSA-652f-8c88-25cx (https://github.com/cubecart/v6/security/advisories/GHSA-652f-8c88-25cx). For operators who cannot immediately upgrade, revoke or rotate any API keys carrying the files:rw permission and audit existing keys for least-privilege scoping - this directly eliminates the precondition for exploitation but will break legitimate integrations that depend on programmatic file management. As an additional layer, deny PHP execution inside images/source/ via webserver configuration (e.g., an Apache 'php_admin_flag engine off' block or nginx location rule), and block POST requests to /api/v1/files at the WAF or reverse proxy for clients that should not be invoking the file manager; note these controls do not stop the path-traversal write to other writable directories, only execution from the upload target. After patching, audit images/source/ and the document root for unexpected .php files dropped before the fix.
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-based open-source ecommerce platform deployed on customer-managed LAMP/LEMP stacks (CPE: cpe:2.3:a:cubecart:v6). The vulnerability resides in the REST API File Manager endpoint (POST /api/v1/files), which fails to validate file extensions before writing user-supplied content to disk - a textbook CWE-434 (Unrestricted Upload of File with Dangerous Type). Compounding this, the filepath parameter lacks normalization, so '../' sequences traverse out of images/source/ into the document root. Because uploaded .php files land in a web-accessible location and are interpreted by the PHP runtime, file write equates directly to code execution under the webserver user.
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 Arbitrary File Upload vulnerability exists in the REST API File Manager endpoint (POST /api/v1/files) of CubeCart. The endpoint allows any holder of an API key with files:rw permission to upload PHP source files into the web-accessible images/source/ directory, where they are executed by the web server. Combined with a path-traversal flaw in the same endpoint's filepath parameter, a single API request writes a webshell anywhere the webserver process can write - including the document root - yielding full Remote Code Execution. This vulnerability is fixed in 6.7.0.
Executive ViewAI
CubeCart v6 installations prior to version 6.7.0 face critical remote code execution risk through a path-traversal vulnerability in the REST API file upload endpoint. Attackers with valid API keys and file write permissions can upload malicious PHP files to execute arbitrary code and gain full server control. Organizations running e-commerce operations on affected versions should prioritize immediate patching to prevent complete platform compromise.
Vendor-released patch: CubeCart v6.7.0. While patching is deployed: restrict API key issuance and files:rw permission assignments to essential service accounts only; implement WAF rules to block POST requests to /api/v1/files endpoint; enable detailed logging and monitoring of API authentication events.
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
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
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-30170
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB