CVE-2024-27917: Shopware/storefront Shopware's Session Is Persistent Vulnerability

HIGH
Advisory Identifier: GHSA-c2f9-4jmm-v45m
CVSS 7.5
CWE-524
Published
Advisory Summary

CVE-2024-27917 is a HIGH (CVSS 7.5) shopware's session is persistent vulnerability (CWE-524: Use of Cache Containing Sensitive Information) affecting Shopware/storefront libraries in the Packagist ecosystem. The issue involves shopware's session is persistent in cache for 404 pages. Remediation is available by upgrading affected packages to version 6.5.8.7.

CVE-2024-27917 at a Glance

CVE Identifier CVE-2024-27917
GHSA Identifier GHSA-c2f9-4jmm-v45m
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-524: Use of Cache Containing Sensitive Information
Affected Product Shopware/storefront
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-27917

To remediate this vulnerability, upgrade all affected Shopware/storefront dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

shopware/storefront fixed: 6.5.8.7
Upgrade shopware/storefront to 6.5.8.7
shopware/platform fixed: 6.5.8.7
Upgrade shopware/platform to 6.5.8.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for shopware/storefront

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-27917, inspect your project dependencies for Shopware/storefront:

inspect dependencies for shopware/storefront

Analyze the terminal output to locate any version of Shopware/storefront in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.5.8.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-524: Use of Cache Containing Sensitive Information, where the code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere. In Shopware/storefront, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The Symfony Session Handler, pop's the Session Cookie and assign it to the Response. Since Shopware 6.5.8.0 the 404 pages, are cached, to improve the performance of 404 pages. So the cached Response, contains a Session Cookie when the Browser accessing the 404 page, has no cookies yet. The Symfony Session Handler is in use, when no explicit Session configuration has been done. When Redis is in use for Sessions using the PHP Redis extension, this exploiting code is not used. ### Patches Update to Shopware version 6.5.8.7 ### Workarounds Using Redis for Sessions, as this does not trigger the exploit code. Example configuration for Redis ```ini # php.ini session.save_handler = redis session.save_path = "tcp://127.0.0.1:6379" ``` ## Consequences As an guest browser session has been cached on a 404 page, every missing image or directly reaching a 404 page will logout the customer or clear his cart.

CVE-2024-27917 Affected Shopware/storefront Versions

2 component(s)
Fixed Versions:
6.5.8.7
Product / Package Ecosystem Affected Versions Fixed Version
shopware/storefront
Packagist
≥ 6.5.8.0
< 6.5.8.7
6.5.8.7
shopware/platform
Packagist
≥ 6.5.8.0
< 6.5.8.7
6.5.8.7

References

Frequently Asked Questions

What is CVE-2024-27917?
CVE-2024-27917 is a security vulnerability in Shopware/storefront involving Shopware's session is persistent in Cache for 404 pages under CWE-524: Use of Cache Containing Sensitive Information.
Which Shopware/storefront versions are affected?
Affected versions include releases prior to 6.5.8.7 across affected packages: shopware/storefront, shopware/platform.
What version fixes CVE-2024-27917?
Upgrading to 6.5.8.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shopware/storefront affected?
Yes, shopware/storefront is affected in releases prior to 6.5.8.7. Upgrade your dependency to 6.5.8.7 or later.
Is shopware/platform affected?
Yes, shopware/platform is affected in releases prior to 6.5.8.7. Upgrade your dependency to 6.5.8.7 or later.
What is the CVSS score of CVE-2024-27917?
CVE-2024-27917 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-27917?
CVE-2024-27917 is classified under CWE-524: Use of Cache Containing Sensitive Information (The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.).
How can I check Packagist dependencies for CVE-2024-27917?
Run the dependency tree command: 'inspect dependencies for shopware/storefront'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c2f9-4jmm-v45m",
  "modified" : "2026-02-17T22:02:24Z",
  "published" : "2024-03-06T15:06:54Z",
  "aliases" : [ "CVE-2024-27917" ],
  "summary" : "Shopware's session is persistent in Cache for 404 pages",
  "details" : "### Impact\n\nThe Symfony Session Handler, pop's the Session Cookie and assign it to the Response. Since Shopware 6.5.8.0 the 404 pages, are cached, to improve the performance of 404 pages. So the cached Response, contains a Session Cookie when the Browser accessing the 404 page, has no cookies yet. The Symfony Session Handler is in use, when no explicit Session configuration has been done.\nWhen Redis is in use for Sessions using the PHP Redis extension, this exploiting code is not used.\n\n### Patches\nUpdate to Shopware version 6.5.8.7\n\n### Workarounds\nUsing Redis for Sessions, as this does not trigger the exploit code. Example configuration for Redis\n\n```ini\n# php.ini\nsession.save_handler = redis\nsession.save_path = \"tcp://127.0.0.1:6379\"\n```\n\n## Consequences\n\nAs an guest browser session has been cached on a 404 page, every missing image or directly reaching a 404 page will logout the customer or clear his cart.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "shopware/storefront"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.5.8.0"
      }, {
        "fixed" : "6.5.8.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "shopware/platform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.5.8.0"
      }, {
        "fixed" : "6.5.8.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/shopware/shopware/security/advisories/GHSA-c2f9-4jmm-v45m"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/shopware/shopware/commit/7d9cb03225efca5f97e69b800d8747598dd15ce3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/shopware/storefront/commit/3477e4a425d3c54b4bfae82d703fe3838dc21d3e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/shopware/shopware"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/shopware/shopware/releases/tag/v6.5.8.7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-524" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-06T15:06:54Z",
    "nvd_published_at" : "2024-03-06T20:15:48Z"
  }
}