CVE-2024-31447: Shopware Improper Session Handling in store-api account logout
Impact When a authentificated request is made to POST /store-api/account/logout, the cart will be cleared, but the User won't be logged out. This affects only the direct store-api usage, as the PHP Storefront listens additionally on CustomerLogoutEvent and invalidates the session additionally. Patches The problem has been fixed with Shopware 6.6.1.0 and 6.5.8.8.
Published Apr 8, 2024
Affected packages
shopware/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.3.5.0, < 6.5.8.8
- Fixed in
- 6.5.8.8
- Check
composer show shopware/core
shopware/platform
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.3.5.0, < 6.5.8.8
- Fixed in
- 6.5.8.8
- Check
composer show shopware/platform
shopware/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.6.0.0-rc1, < 6.6.1.0
- Fixed in
- 6.6.1.0
- Check
composer show shopware/core
shopware/platform
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.6.0.0-rc1, < 6.6.1.0
- Fixed in
- 6.6.1.0
- Check
composer show shopware/platform
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
When a authentificated request is made to POST /store-api/account/logout, the cart will be cleared, but the User won't be logged out. This affects only the direct store-api usage, as the PHP Storefront listens additionally on CustomerLogoutEvent and invalidates the session additionally.
Patches
The problem has been fixed with Shopware 6.6.1.0 and 6.5.8.8.
Workarounds
When you are not able to update, you can install the latest version of the Shopware Security Plugin.
Credited to mdanilowicz.
References
- https://github.com/shopware/shopware/security/advisories/GHSA-5297-wrrp-rcj7
- https://github.com/shopware/shopware/commit/5cc84ddd817ad0c1d07f9b3c79ab346d50514a77
- https://github.com/shopware/shopware/commit/d29775aa758f70d08e0c5999795c7c26d230e7d3
- https://nvd.nist.gov/vuln/detail/CVE-2024-31447
- https://github.com/advisories/GHSA-5297-wrrp-rcj7
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-48008
Shopware: Privilege Escalation via Sync API Integration Admin Flag Bypass
medium6.5Jun 4, 2026CVE-2026-48009
Shopware: Admin Account Takeover via User Recovery Hash Exposure
medium6.8Jun 4, 2026CVE-2026-48010
Shopware: Privilege escalation: non-admin user with user:create ACL can create admin accounts
medium6.5Jun 4, 2026CVE-2026-48011
Shopware: Timing-attack on admin panel allowing enumeration of administrator usernames
low3.7Jun 4, 2026CVE-2026-48012
Shopware SSO referer trust leading to an arbitrary redirect target
medium4.3Jun 4, 2026CVE-2026-48013
Shopware: SSRF in Media External-Link Endpoint Bypasses IP Validation
medium4.1Jun 4, 2026
