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

SQL injection in Store API aggregation handling on PHP < 8.4

GHSA-2qxr-vvj4-5934

Affected versions

PackageAffected versionsFixed in
shopware/core>=6.7.0.0 <6.7.14.16.7.14.1
shopware/core<6.6.10.256.6.10.25
shopware/platform>=6.7.0.0 <6.7.14.16.7.14.1
shopware/platform<6.6.10.256.6.10.25

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.23 or newer
6.6.x3.0.19 or newer
6.7.x4.0.15 or newer

Description

Summary

Insufficient validation of Store API aggregation input can result in SQL injection when Shopware runs on PHP versions before 8.4 with PDO MySQL emulated prepares enabled.

Impact

An unauthenticated Store API client may be able to read arbitrary data from the underlying database. Write access has not been established.

Affected versions
  • All Shopware versions before 6.6.10.25, including 6.5.x and earlier, as well as 6.6.0.0 through 6.6.10.24
  • Shopware 6.7.0.0 through 6.7.14.0

The vulnerability requires PHP < 8.4 with PDO MySQL emulated prepares enabled.

Patches

The issue is fixed in:

  • Shopware 6.6.10.25
  • Shopware 6.7.14.1

The patch strengthens validation of Store API aggregation input before it is used in generated database queries.

Workarounds

Until patched:

  • Upgrade to PHP 8.4 or later; or
  • Disable PDO MySQL emulated prepares by setting PDO::ATTR_EMULATE_PREPARES to false.
  • Apply equivalent input validation in application-level Store API consumers or proxies.
Credits

This vulnerability was reported over our Bug Bounty Program.