The maintainers of CubeCart have confirmed that attackers are exploiting an unauthenticated remote code execution flaw in the open-source e-commerce platform. The advisory, GHSA-86w8-pwv3-4vph, documents live attacks on Dec. 2 against a shop running version 6.7.5. No CVE identifier has been assigned.
What Attackers Did on the Compromised CubeCart Store
According to the advisory, the attackers edited the store’s copyright text, ran commands on the server and dropped web shells in the images/ directory. They then restored the original copyright text to hide the changes. The copyright setting played a central role: it was the place where attackers planted their payload before executing it.
The attack needs no login. Any internet-facing CubeCart v6 store is exposed to takeover and theft of shopper data.
Session Handling Since Version 6.6.0 Created the Opening
The flaw traces back to how CubeCart stores and decodes session data, a design that has been in place since version 6.6.0.
Fallback Decoder Allows All PHP Classes
Since version 6.6.0, CubeCart stores sessions in the database. If strict session decoding fails, a fallback decoder unserializes the data while allowing all PHP classes. That fallback is the weak point, because deserializing attacker-controlled data with no class restrictions lets an attacker instantiate objects of their choosing.
How the Referer Header Forces the Fallback
The attackers need a way to make strict decoding fail. The HTTP Referer header is saved into the session, and a function called sqlSafe() runs stripslashes() on the stored blob. That processing breaks string lengths inside the serialized data, so strict decoding fails and the fallback takes over.
Forged Config Object and Smarty Template Execution
With the fallback active, attackers forge a Config object, write a Smarty template into the store’s copyright setting and run operating-system commands. The chain requires no authentication at any step.
A Separate SQL Injection Disclosed in Storefront Search
The maintainers also disclosed GHSA-jfqc-r63w-28cp, a high-severity SQL injection in the storefront search feature, scored 7.5 on the CVSS scale. No exploitation of that flaw has been confirmed. It is unrelated to the session-handling bug but was published alongside it.
Hotfix and CubeCart 6.8.7 Address the Zero-Day
The project’s fix comes either as a hotfix or through an upgrade to CubeCart 6.8.7. The advisory names 6.7.5 as the version observed under attack, though the underlying code has been in place since 6.6.0, which suggests every release from 6.6.0 onward carries the same session logic.
The case adds to a recurring pattern in which unsafe deserialization lets a single request become code execution on the web server. Online stores concentrate payment-adjacent customer information, so a takeover of the application gives an attacker a place from which to read shopper records. The maintainers’ advisory does not report how many stores have been compromised or whether data was taken from the store where the attack was observed.
Open Items: CubeCart CVE Assignment and Attack Scale
Two details remain unresolved at the time of reporting. No CVE ID covers the RCE yet, which can delay its appearance in scanners and vulnerability databases that key on CVE numbers. And the advisory describes attacks on one shop, leaving the broader scale of exploitation unknown.
What CubeCart Operators Know So Far
The advisory ties the confirmed attacks to a single shop running 6.7.5 on Dec. 2, and it lists takeover and shopper data theft as the exposure for internet-facing v6 stores. The attackers’ cleanup step is a notable detail: restoring the original copyright text removes a visible sign of tampering, so the storefront could look unchanged while web shells remained in the images/ directory.
The fix route is a hotfix or an upgrade to CubeCart 6.8.7. The advisory does not say how many stores have been affected.
