TL;DR
CubeCart disclosed a critical CubeCart RCE zero-day (GHSA-86w8-pwv3-4vph) on December 2, 2026, confirming live attacks in the wild. Maintainers also disclosed a high-risk CubeCart SQL injection bug (GHSA-jfqc-r63w-28cp, CVSS 7.5) in storefront search. Therefore, store owners must apply the hotfix or upgrade to CubeCart 6.8.7 right away.
Why It Matters
Online shops run CubeCart v6 on PHP servers to handle orders, shopper records, and payment links. Because both bugs need no login on public storefronts, foes can hit any open shop over the web. Neither flaw has a CVE ID yet, but the risk is immediate.
In advisory GHSA-86w8-pwv3-4vph, CubeCart confirms live raids on December 2, 2026, against a shop running 6.7.5. Intruders edited store copyright text, ran server commands, and dropped web shells into images/. Next, they restored the old copyright text to hide their tracks. Meanwhile, no wild attacks are confirmed for the SQL injection bug, though its notice shares a proof-of-concept outline. Acting fast on this CubeCart RCE zero-day protects shopper data.
How the Attack Works
Pre-Auth PHP Object Injection to RCE (GHSA-86w8-pwv3-4vph)
Since 6.6.0, CubeCart stores sessions in its own database via classes/session.class.php. Normally, Session::_start() decodes session data with strict class blocks. However, if that strict decode fails, it falls back to _decodePhpSession(), which allows all PHP classes.
A remote guest can force that fallback on purpose. First, CubeCart saves the HTTP Referer header into the session. Next, sqlSafe() runs stripslashes() on the stored blob, breaking string lengths so the strict decode fails. The fallback then unserializes attacker text with every class allowed. By forging a Config object, a foe writes a Smarty template into config.store_copyright and runs OS commands.
Unauthenticated Storefront SQL Injection (GHSA-jfqc-r63w-28cp)
Separately, advisory GHSA-jfqc-r63w-28cp (reported by p-w) details a CVSS 7.5 CubeCart SQL injection bug (CWE-89) in classes/catalogue.class.php. The search handler builds its ORDER BY clause from the $_GET['sort'] key and runs raw Database::query(). When the sort key holds spaces or dots, CubeCart skips escaping. As a result, a guest can pull customer data, password hashes, or API keys.
Affected Versions
- GHSA-86w8-pwv3-4vph (Critical RCE): CubeCart versions 6.6.0 through 6.8.6 (fixed in 6.8.7).
- GHSA-jfqc-r63w-28cp (High SQLi): CubeCart versions 6.5.12 through 6.8.6 (fixed in 6.8.7).
Patch and Mitigation Steps
Store admins should upgrade to CubeCart 6.8.7 as soon as it lands. If you cannot upgrade today, apply CubeCart’s one-line hotfix in Session::_decodePhpSession() by changing 'allowed_classes' => true to false. Also, remove filter_var from the Smarty allowlist and block serialized object markers in Referer or User-Agent headers.
Finally, check your images/ folder for rogue PHP web shells. Also, review store settings for hidden edits left by this CubeCart RCE zero-day.
Support Our Threat Intelligence
Find our vulnerability reports and weekly recaps helpful? Support our work today and unlock a 100% ad-free reading experience!