On 2 December 2026 the CubeCart maintainers published a critical advisory, GHSA-86w8-pwv3-4vph, for a flaw that lets an unauthenticated visitor run code on a CubeCart shop. It was already being used: the advisory says it was exploited in the wild that day against a store running 6.7.5. CubeCart 6.6.0 through 6.8.6 are affected, and 6.8.7, released the same day, fixes it. There is no CVE identifier yet.

CubeCart is a small open-source PHP shopping cart, the kind of software run by a one-person shop on shared hosting. Those are the sites least likely to read a GitHub security advisory on the day it appears, and the ones where card skimming and planted files go unnoticed longest.

[INFO]
Status: exploited before disclosure; fixed in CubeCart 6.8.7 (2 December 2026). A one-line hotfix is available for shops that cannot upgrade at once. No CVE assigned. A second advisory in the same release fixes an unauthenticated SQL injection in storefront search (6.5.12 through 6.8.6); the advisory does not say that one has been exploited. Facts from both CubeCart advisories. Status as of 4 December.
◈ interactive artifact
Four Shops, the Morning After
Four CubeCart shops, each with a version, an access log, a listing of images/ and a settings audit. Triage each one and see why a probe in the log is not the same as a compromise.

//How It Works, in Outline

Since version 6.6.0 CubeCart stores its own sessions. When a stored session fails strict decoding, CubeCart falls back to an older decoder, _decodePhpSession(), which turns stored values back into PHP objects with every class allowed. The advisory says an unauthenticated visitor can reach that fallback through the HTTP Referer header, combined with a stripslashes() side effect in CubeCart's database-escaping helper.

From there the attacker can plant an object whose clean-up code writes arbitrary store settings to the database. The advisory's chain writes a template into the shop's copyright setting, which the Smarty template engine then runs, because a PHP function it can reach is on the allowed list. That is code execution from one crafted header. This article leaves out the payload.

//What the Attacker Did

The advisory describes the attack it saw on 2 December: the attacker rewrote the store's copyright setting, ran commands, wrote web shells into the images/ directory, and then put the original copyright text back. That last step is the one to remember. A shop owner who looks at the footer will see nothing wrong. The evidence is in the files under images/ and in the history of the settings table, not on the page.

//What to Do

Upgrade to 6.8.7. If that cannot happen today, the advisory gives a one-line hotfix: in Session::_decodePhpSession(), change 'allowed_classes' => true to false. It also recommends removing filter_var from the Smarty modifier allowlist and stopping the escaping helper from running stripslashes() on values that are not raw request input.

As a stopgap only, the advisory says blocking requests whose Referer or User-Agent contains |O: followed by digits stops the payload it observed. That pattern is also a useful search for access logs. A hit means someone tried; whether they got in shows in images/ (any .php file there is a finding) and in unexplained settings changes.

A shop that was on an affected version and shows either sign should be treated as compromised: keep a copy of the files and database, rebuild from a known-good copy on 6.8.7, and change the admin and database passwords. On a shop that takes card payments, assume anything the server could see was exposed until checked.

[IOC]
Advisory: GHSA-86w8-pwv3-4vph (critical, CWE-502), published 2 December 2026; no CVE
Affected: CubeCart 6.6.0 - 6.8.6 · Fixed: 6.8.7 · Hotfix: allowed_classes => false in Session::_decodePhpSession()
Exploited: 2 December 2026 against 6.7.5 (copyright setting rewritten then restored; web shells in images/)
Log search: Referer or User-Agent containing |O: followed by digits
Same release: GHSA-jfqc-r63w-28cp, unauthenticated SQL injection in search sort (6.5.12 - 6.8.6, CVSS 7.5); no exploitation stated

//Sourcing and Uncertainty

Everything about the flaw, the attack, the versions, the hotfix and the blocking pattern is from CubeCart's advisory GHSA-86w8-pwv3-4vph; the SQL injection details are from GHSA-jfqc-r63w-28cp. Both were read on 4 December. Some news summaries say the SQL injection is being exploited too; its advisory does not say so, and this article does not repeat it.

What is unknown. How many shops were attacked, who is behind it, whether card data was taken anywhere, and how the attackers found the bug before the maintainers did.