Vulnerabilities

UK-made CubeCart hit by zero-day as attackers plant web shells

CubeCart discloses an exploited pre-auth RCE flaw and a storefront SQL injection. Fixed release 6.8.7 not yet out: apply the hotfix now.

Illustration of a software bug over an online shop, headlined CubeCart zero-day exploited against online shops

CubeCart, the shopping cart software published by a Cambridge-registered company, has disclosed a critical flaw that lets anyone run code on a store without logging in, and says it was used against a live shop the same day. The advisory lists a fixed release, 6.8.7, that at the time of publication was not yet out, so store owners need to apply a one-line hotfix by hand.

What happened

On 2 December 2026 the CubeCart maintainers published two security advisories on the project’s GitHub repository. The more serious, tracked as GHSA-86w8-pwv3-4vph and rated critical, describes a pre-authentication PHP object injection bug that leads to remote code execution. It affects CubeCart 6.6.0 through 6.8.6.

According to CubeCart’s own advisory, the flaw was exploited in the wild on 2 December against a store running version 6.7.5. The vendor says the attacker executed commands on the server, dropped web shells into the store’s images/ directory and then put the shop’s original copyright text back, apparently to make the tampering harder to spot. The security news site Daily CyberSecurity (SecurityOnline) reported the same details on 3 December. At the time of writing we could not find any independent confirmation from a third party, such as an incident responder or national CERT, so the in-the-wild claim rests on CubeCart’s disclosure.

The second advisory, GHSA-jfqc-r63w-28cp, covers an unauthenticated SQL injection in the storefront search, scored 7.5 under CVSS 3.1. It reaches further back, affecting 6.5.12 through 6.8.6, and is credited to a researcher using the handle “p-w”. CubeCart has not reported exploitation of this second bug. Neither issue had a CVE identifier when published.

The advisory names 6.8.7 as the patched version, but its patches section said a fix was “Not yet released”.

The technical picture

Since 6.6.0, CubeCart has kept session data in its own database. Normally that data is decoded with restrictions on which PHP classes may be rebuilt. The advisory explains that when this strict decoding fails, the code drops back to a legacy routine, Session::_decodePhpSession(), which permits every class. That fallback exists for an old session format that, by the maintainers’ own account, has long since expired.

An unauthenticated visitor can steer data into that fallback through a request header the store records, helped by a side effect in the input sanitising function sqlSafe(). Once an attacker controls which objects are rebuilt, the advisory says a crafted object can be used to alter the shop’s saved configuration. Placing a malicious template in the copyright setting then turns the Smarty template engine into a route to operating system commands. The point for defenders is that no account, user interaction or unusual configuration is needed.

The SQL injection is a separate weakness in searchCatalogue(). The sort field for search results is taken from request data and built into the query by hand, bypassing the allowlist that CubeCart’s safer database helper normally applies. The advisory says blind techniques could pull out customer records, password hashes and session material. Stores using Elasticsearch-backed search and the category product listing are not affected by this path.

Checklist of five actions for CubeCart store owners: check version, apply hotfix, upgrade to 6.8.7, hunt for web shells, rotate secrets

Why it matters for UK organisations

CubeCart Limited is registered in England and Wales, with a registered office in Cambridge according to Companies House, and the company says it has powered merchants for over 23 years. It describes its customers as thousands of stores worldwide, and in practice self-hosted carts like this tend to be run by smaller retailers, frequently on shared hosting.

That profile is exactly what makes this awkward. Small online shops rarely have anyone watching vulnerability feeds, and a store that has not been touched since it was set up a few years ago will very likely sit inside the affected range. A compromised shop is not only a defacement risk. Code execution on the web server puts customer names, addresses and order history within reach, along with database credentials and any payment integration keys stored in the configuration.

For a UK merchant, a successful attack is likely to be a personal data breach under UK GDPR, with the 72-hour reporting clock to the ICO starting once you become aware of it. If card data handling is affected, PCI DSS obligations and your acquirer will come into play too.

Expert view

This is a textbook example of why fallback code paths deserve as much scrutiny as the main ones. The strict decoder was doing its job; the problem was a compatibility route kept alive for data that no longer exists. In my experience, legacy branches like this survive for years because nobody wants to be the person who breaks an old install, and they are rarely covered by tests.

The attacker behaviour CubeCart describes is also worth noting. Restoring the original copyright text after using it as a launch point suggests someone who expected the store owner to notice a visible change. One confirmed incident tells us little about scale, however. Given how quickly mass scanning follows public advisories for PHP applications, I would assume widespread probing within days, whether or not a CVE has been assigned.

The lack of a released patch at disclosure is uncomfortable, but CubeCart has at least been candid and published a minimal hotfix. When we test e-commerce platforms, the stores that come out worst are those where the owner cannot say which version they run or who would apply an emergency change. If that describes your shop, this is the week to fix it.

What to do now

  1. Check your version today. Anything from 6.6.0 to 6.8.6 is exposed to the code execution flaw; 6.5.12 onwards is exposed to the SQL injection.
  2. Apply the vendor hotfix immediately. In Session::_decodePhpSession(), set allowed_classes to false as the advisory describes. Take a backup first. This maps to Cyber Essentials security update management.
  3. Upgrade to 6.8.7 as soon as it is published, and watch the CubeCart GitHub repository and website for the release.
  4. Apply the extra hardening the advisory recommends, including removing filter_var from the Smarty modifier allowlist. If you run a web application firewall, ask your host to block serialised PHP objects in request headers as a stopgap, not a fix.
  5. Hunt for compromise. Look for unexpected PHP files under images/, review recent changes to store settings including the copyright text, and check web server logs from 2 December onwards. If you find a web shell, treat the server as compromised: rebuild, rotate database and payment API credentials, and assess whether ICO notification is required.
  6. Reduce what an attacker can reach. Make sure the web server account cannot write outside the directories it needs and that admin panels are restricted by IP or MFA, in line with Cyber Essentials secure configuration and access control.

Bottom line

A critical, unauthenticated code execution flaw in a UK-built shopping cart has been used against at least one live store, according to the vendor, and the official fixed release was not available at disclosure. Every CubeCart shop owner should apply the one-line hotfix now, check for web shells, and upgrade the moment 6.8.7 lands.

Sources