Community Hub membersJoin more than 6500+ Members
All security advisories
HighCVSS 7.3– Published

Insufficient Twig template isolation permits privilege escalation

GHSA-59j5-8mv2-2fc5

Affected versions

PackageAffected versionsFixed in
shopware/core< 6.6.10.326.6.10.32
shopware/core>= 6.7.0.0, < 6.7.16.16.7.16.1
shopware/platform< 6.6.10.326.6.10.32
shopware/platform>= 6.7.0.0, < 6.7.16.16.7.16.1

Fixed by the Security Plugin

If you cannot update Shopware right away, the Shopware Security Plugin closes this issue from the listed version on.

Shopware versionSecurity Plugin version
6.5.x2.0.25 or newer
6.6.x3.0.21 or newer
6.7.x4.0.17 or newer

Description

Summary

Shopware does not sufficiently isolate security-sensitive objects accessible to Twig templates.
An attacker able to supply or modify a Twig template executed by Shopware can perform operations beyond the template's intended permissions.
This issue affects Twig templates generally, including App Scripts.

Impact

An attacker controlling an executed Twig template can bypass authorization restrictions and make unauthorized changes to shop data.
Depending on the execution context and available functionality, this can result in administrative privilege escalation.

Affected versions
  • All Shopware versions before 6.6.10.32, including older affected release lines.
  • Shopware 6.7 versions before 6.7.16.1.
Patches

The issue is fixed in:

  • Shopware 6.6.10.32.
  • Shopware 6.7.16.1.
Workarounds

Until patched:

  • Restrict the ability to supply or modify Twig templates to fully trusted parties.
  • Install and update Apps, themes and extensions only from trusted sources.
Credits

@thedevilhunter225