Aller au contenu principal
HDWSec
Critical GHSA-6qhw-38wm-7g7h

Shopware 6: App Script Sandbox Escape leading to Arbitrary PHP and OS Command Execution

Sévérité
Critical
Score CVSS
9.6CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Identifiants CVE
GHSA-6qhw-38wm-7g7h
Éditeur
Shopware
Produit
Shopware 6 (shopware/core, shopware/platform - App Scripts / Twig sandbox)
Versions affectées
6.5.4.0 through 6.6.10.22, and 6.7.0.0 through 6.7.13.0
Version corrigée
6.6.10.23, 6.7.13.1
Type de vulnérabilité
Sandbox escape leading to Code Injection (CWE-94), Incomplete List of Disallowed Inputs (CWE-184), Improper Neutralization of Special Elements (CWE-1336)
Chercheurs
Jean-Jamil KHALIFÉ

Presentation

Shopware 6 is an open-source e-commerce platform. Its App system lets extensions ship App Scripts, Twig templates executed server-side inside a sandbox that is supposed to restrict them to a safe subset of functions.

HDW Sec found a way out of that sandbox: a malicious or compromised app installed and activated on a shop can execute arbitrary PHP functions and operating-system commands with the privileges of the web server process. Shopware rated it critical, 9.6.

Issue(s)

  • The Twig sandbox restricts the callables an App Script may reach through an allow-list, but a filter reachable from the sandbox resolves callables that the list was never meant to expose.
  • From there, arbitrary PHP functions can be called, and through them operating-system commands, with the permissions of the PHP or web server process.
  • The consequence is full compromise of the shop: access to configuration and credentials, modification of any file the process can write, access to internal services, and disruption of the shop.
  • The scope is changed (S:C): the escape crosses the sandbox boundary that the security model relies on.

References

  • GitHub advisory: GHSA-6qhw-38wm-7g7h
  • Fixed in Shopware 6.6.10.23 and 6.7.13.1, published 2026-08-25. No CVE assigned as of publication.

Notre R&D traque les vulnérabilités.

Recherche de 0-day, reverse engineering, divulgation coordonnée : découvrez notre pôle R&D.