CVE-2024-27917: Shopware/storefront Shopware's Session Is Persistent Vulnerability
HIGHCVE-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
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).
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.
Upgrade shopware/storefront to 6.5.8.7
Upgrade shopware/platform to 6.5.8.7
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
CVE-2024-27917 Affected Shopware/storefront Versions
2 component(s)| 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?
Which Shopware/storefront versions are affected?
What version fixes CVE-2024-27917?
Is shopware/storefront affected?
Is shopware/platform affected?
What is the CVSS score of CVE-2024-27917?
What CWE is associated with CVE-2024-27917?
How can I check Packagist dependencies for CVE-2024-27917?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}