CVE-2024-31447: Shopware Improper Session Handling in store-api account logout

shopware/core Updated 02 Oct 2025

Summary

08/04/2024
Yes i
Moderate
5.3

CVE-2024-31447: Shopware Improper Session Handling in store-api account logout. Affects shopware/core across 2 version ranges.

>= 6.3.5.0, < 6.5.8.8 >= 6.6.0.0-rc1, < 6.6.1.0

Fixed in 6.5.8.8 or 6.6.1.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Shopware is an open-source e-commerce platform that provides a range of features for online stores. It includes functionalities such as product management, order processing, customer management, and more. The vulnerability affects the store-api component of Shopware, specifically the account logout functionality.

Vulnerability Detail

The vulnerability arises when an authenticated request is made to the POST /store-api/account/logout endpoint. While the cart is cleared, the user is not properly logged out. This issue only impacts direct usage of the store-api and does not affect the PHP Storefront, which invalidates the session through the CustomerLogoutEvent. The vulnerability can potentially allow an attacker to maintain access to a user's account even after the logout request.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 6.3.5.0, < 6.5.8.8 6.5.8.8
    composer require shopware/core:6.5.8.8
  • >= 6.6.0.0-rc1, < 6.6.1.0 6.6.1.0
    composer require shopware/core:6.6.1.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If updating to the latest version is not immediately feasible, an alternative workaround is to install the latest version of the Shopware Security Plugin. This plugin can help mitigate the vulnerability until a full update can be performed.

Conclusion

The improper session handling vulnerability in the store-api account logout functionality of Shopware can potentially allow unauthorized access to user accounts. It is crucial to update to the latest patched versions of Shopware (6.6.1.0 or 6.5.8.8) to mitigate this vulnerability. If immediate updating is not possible, installing the Shopware Security Plugin can provide temporary protection. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for shopware/core →

Share this vulnerability

FAQ

The vulnerability allows an attacker to maintain access to a user's account even after a logout request, potentially leading to unauthorized actions on the user's behalf.

The vulnerability affects Shopware versions 6.3.5.0 and above, up to versions 6.6.0.0-rc1. Versions 6.5.8.8 and 6.6.1.0 include the necessary fixes.

Yes, the vulnerability only affects the store-api component of Shopware. The PHP Storefront handles the logout functionality properly.

At the time of this advisory, there are no known public exploits targeting this specific vulnerability.

Yes, the CVSS score for this vulnerability is 5.3, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for shopware/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 6.3.5.0, < 6.5.8.8 6.5.8.8
    composer require shopware/core:6.5.8.8
  • >= 6.6.0.0-rc1, < 6.6.1.0 6.6.1.0
    composer require shopware/core:6.6.1.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback