← Voltar ao feed
critical retail

CubeCart pre-auth PHP object injection RCE zero-day exploited in the wild; SQL injection also disclosed (fix in 6.8.7)

1 fonte(s) · 1 atualização(ões) · publicado 03/12/2026 00:54 · coletado há 2 dias

CubeCart disclosed a critical pre-authentication RCE zero-day (GHSA-86w8-pwv3-4vph) on December 2, 2026, and confirmed live exploitation against a shop running 6.7.5. A second, separate flaw, an unauthenticated storefront SQL injection (GHSA-jfqc-r63w-28cp, CVSS 7.5), was disclosed at the same time. Neither flaw has a CVE ID yet. The article reports the fixes as CubeCart 6.8.7, or a one-line hotfix for the RCE. This record rests on the article alone, because no web research was done, so the vendor advisories, the release status of 6.8.7 and the CVSS vector for the RCE are unverified.

Entenda a falha

A vulnerabilidade

CubeCart has two unauthenticated flaws. The most severe is GHSA-86w8-pwv3-4vph, a critical pre-auth PHP object injection that leads to RCE, affecting 6.6.0 through 6.8.6 and exploited in the wild against a shop running 6.7.5. A remote guest over the web needs no login. By forging a Config object, they can write a Smarty template into config.store_copyright and run OS commands. The second is GHSA-jfqc-r63w-28cp (CWE-89, CVSS 7.5), an SQL injection in storefront search affecting 6.5.12 through 6.8.6. It lets a guest pull customer data, password hashes or API keys. Neither has a CVE ID yet. Both are fixed in 6.8.7, which the article says to install "as soon as it lands", so its release status is unclear.

Como funciona

For the RCE, since 6.6.0 CubeCart stores sessions in its own database. A guest's HTTP Referer header is saved into the session. When the session is read, Session::_start() first decodes the data with strict class blocking. Before that, sqlSafe() has run stripslashes() on the stored blob, which breaks the serialized string lengths, so the strict decode fails. The code then falls back to _decodePhpSession(), which unserializes with all classes allowed, so attacker-supplied objects are instantiated. For the SQLi, the search handler takes the key of $_GET['sort'], builds the ORDER BY clause from it and passes it to raw Database::query(). Escaping is skipped when the key contains spaces or dots.

Por que é vulnerável

The RCE comes from an unsafe fallback: when the strict decode fails, the code retries with 'allowed_classes' => true instead of rejecting the data, and an attacker can trigger that failure on purpose because stripslashes() corrupts the stored serialized lengths. Untrusted input from the Referer header is therefore deserialized with no class restriction. The SQLi comes from missing escaping: the ORDER BY is built from a user-controlled array key, and the escaping is skipped when the key contains spaces or dots. The one-line hotfix changes 'allowed_classes' to false in Session::_decodePhpSession(). The articles do not say why the flaws went unnoticed.

Onde está

RCE: Session::_start() and _decodePhpSession() in classes/session.class.php, plus sqlSafe(); SQLi: the search handler in classes/catalogue.class.php, which calls Database::query().

Como foi descoberta

The RCE was disclosed by CubeCart on December 2, 2026 as a zero-day, after the maintainers confirmed live exploitation against a shop running 6.7.5. In that attack the intruders edited the copyright text, ran server commands, dropped web shells into images/ and then restored the old text to hide their tracks. The SQL injection was reported by p-w and disclosed in a separate advisory at the same time; no exploitation in the wild is confirmed for it. The articles do not say how the RCE flaw was first found.

PoC pública

The RCE has been exploited in real attacks, but the articles mention no published exploit or PoC for it. For the SQL injection, the advisory shares a proof-of-concept outline, so the technique is publicly described, though no exploitation is confirmed. Given active attacks on the RCE and the public outline for the SQLi, patching or applying the hotfix is urgent.

Explicação gerada por IA a partir da matéria e dos artigos, em 03/12/2026 02:16.

Detalhes técnicos

  • RCE (GHSA-86w8-pwv3-4vph): affects versions 6.6.0 through 6.8.6. Session::_start() in classes/session.class.php normally decodes session data with strict class blocking. If that decode fails, it falls back to _decodePhpSession(), which allows all classes.
  • A guest can force the fallback: the HTTP Referer header is saved into the session, and sqlSafe() runs stripslashes() on the stored blob. This breaks the string lengths, so the strict decode fails and the attacker's serialized text is unserialized with all classes allowed.
  • By forging a Config object, the attacker writes a Smarty template into config.store_copyright and runs OS commands.
  • In the observed attack, the intruders edited the copyright text, ran server commands and dropped web shells into images/. They then restored the old copyright text to hide their tracks.
  • SQLi (GHSA-jfqc-r63w-28cp, CWE-89): affects versions 6.5.12 through 6.8.6, reported by p-w. The search handler in classes/catalogue.class.php builds ORDER BY from the $_GET['sort'] key and passes it to raw Database::query(). Escaping is skipped when the key contains spaces or dots. A guest can pull customer data, password hashes or API keys. No exploitation in the wild is confirmed, but the advisory shares a proof-of-concept outline.

Remediação

  • Upgrade to CubeCart 6.8.7. The article says to do so "as soon as it lands", which suggests the release may not have been out yet.
  • If you cannot upgrade, apply the one-line hotfix in Session::_decodePhpSession(): change 'allowed_classes' => true to false.
  • Remove filter_var from the Smarty allowlist, and block serialized object markers in the Referer and User-Agent headers.
  • Check images/ for rogue PHP web shells, and review store settings for hidden edits.

Linha do tempo

  1. securityonline.info ↗ · pub. 03/12/2026 00:54 · coletado 03/12 02:00 primeiro registro

    CubeCart pre-auth PHP object injection RCE zero-day exploited in the wild; SQL injection also disclosed (fix in 6.8.7)

    ler a análise desta fonte

    CubeCart disclosed a critical pre-authentication RCE zero-day (GHSA-86w8-pwv3-4vph) on December 2, 2026, and confirmed live exploitation against a shop running 6.7.5. A second, separate flaw, an unauthenticated storefront SQL injection (GHSA-jfqc-r63w-28cp, CVSS 7.5), was disclosed at the same time. Neither flaw has a CVE ID yet. The article reports the fixes as CubeCart 6.8.7, or a one-line hotfix for the RCE. This record rests on the article alone, because no web research was done, so the vendor advisories, the release status of 6.8.7 and the CVSS vector for the RCE are unverified.

    Technical Details

    • RCE (GHSA-86w8-pwv3-4vph): affects versions 6.6.0 through 6.8.6. Session::_start() in classes/session.class.php normally decodes session data with strict class blocking. If that decode fails, it falls back to _decodePhpSession(), which allows all classes.
    • A guest can force the fallback: the HTTP Referer header is saved into the session, and sqlSafe() runs stripslashes() on the stored blob. This breaks the string lengths, so the strict decode fails and the attacker's serialized text is unserialized with all classes allowed.
    • By forging a Config object, the attacker writes a Smarty template into config.store_copyright and runs OS commands.
    • In the observed attack, the intruders edited the copyright text, ran server commands and dropped web shells into images/. They then restored the old copyright text to hide their tracks.
    • SQLi (GHSA-jfqc-r63w-28cp, CWE-89): affects versions 6.5.12 through 6.8.6, reported by p-w. The search handler in classes/catalogue.class.php builds ORDER BY from the $_GET['sort'] key and passes it to raw Database::query(). Escaping is skipped when the key contains spaces or dots. A guest can pull customer data, password hashes or API keys. No exploitation in the wild is confirmed, but the advisory shares a proof-of-concept outline.

    Remediation

    • Upgrade to CubeCart 6.8.7. The article says to do so "as soon as it lands", which suggests the release may not have been out yet.
    • If you cannot upgrade, apply the one-line hotfix in Session::_decodePhpSession(): change 'allowed_classes' => true to false.
    • Remove filter_var from the Smarty allowlist, and block serialized object markers in the Referer and User-Agent headers.
    • Check images/ for rogue PHP web shells, and review store settings for hidden edits.