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

SQL injection on PHP 8.2 and 8.3

GHSA-4frp-8844-m589

Affected versions

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

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 validate client-controlled aggregation identifiers.
On PHP 8.2 or 8.3 with PDO emulated prepares enabled, an unauthenticated attacker with a valid sales-channel access key can execute SQL using the shop's database connection.
Sales-channel access keys are normally available to storefront clients.

Impact

On affected PHP and database configurations, an unauthenticated attacker with a sales-channel access key can read or modify database records.
This can expose or alter sensitive customer data, administrative credentials and system configuration.

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

Exploitation requires PHP 8.2 or 8.3 with PDO emulated prepares enabled.

Patches

The issue is fixed in:

  • Shopware 6.6.10.32.
  • Shopware 6.7.16.1.
Workarounds

Until patched:

  • Run PHP 8.4 or later where supported by the installed Shopware release.
  • Alternatively, restrict client-controlled Store API aggregations at the application or reverse-proxy layer.
Credits

This vulnerability was found internally by the Shopware security team.