Community Hub membersJoin more than 6500+ Members
All security advisories
CriticalCVSS 9.1– Published

Stored SQL/DDL Injection via Custom Entity Field Names (App Manifest)

GHSA-xrcf-c96g-q5hr

Affected versions

PackageAffected versionsFixed in
shopware/core>=6.7.0.0 <6.7.13.16.7.13.1
shopware/platform>=6.7.0.0 <6.7.13.16.7.13.1
shopware/platform<6.6.10.236.6.10.23
shopware/core<6.6.10.236.6.10.23

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.22 or newer
6.6.x3.0.17 or newer
6.7.x4.0.13 or newer

Description

Impact

Shopware did not sufficiently validate identifiers in custom-entity definitions supplied by Apps. A malicious or compromised App could use a crafted custom-entity definition to execute arbitrary SQL with the permissions of Shopware’s database connection.

This could allow an attacker to read, modify, or delete shop data, alter the database schema, or disrupt the shop.

Affected versions
  • Shopware 6.6.0.0 through 6.6.10.22
  • Shopware 6.7.0.0 through 6.7.13.0
Patches

The issue is fixed in:

  • 6.6.10.23
  • 6.7.13.1

We recommend updating to a patched version as soon as possible.

Workarounds

Until an update can be applied, install and update Apps only from trusted sources. Review installed Apps, particularly those that define custom entities, and avoid enabling or updating untrusted Apps.

Credits

Thanks to @seggewiss for responsibly reporting this issue.