Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2024-27917: Shopware: Persistent Session Cookie on 404 Error Pages
CVE-2024-27917 · published 2 years ago
Summary
A vulnerability in Shopware allows an attacker to access sensitive information when a user reaches a 404 page. This is because the session cookie is not properly cleared when a 404 page is cached. To fix this, update to Shopware 6.5.8.7 or use Redis for sessions as a workaround.
What to do
- Update shopware storefront to version 6.5.8.7.
- Update shopware platform to version 6.5.8.7.
- Update shopware shopware to version 6.5.8.7 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| composer | shopware | storefront |
>= 6.5.8.0, < 6.5.8.7 Fix: upgrade to 6.5.8.7
|
| composer | shopware | platform |
>= 6.5.8.0, < 6.5.8.7 Fix: upgrade to 6.5.8.7
|
| – | shopware | shopware |
>= 6.5.8.0, < 6.5.8.7 cpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:* |
Original advisory text
Shopware's session is persistent in Cache for 404 pages
Shopware is an open commerce platform based on Symfony Framework and Vue. The Symfony Session Handler pops the Session Cookie and assigns 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 which 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. Shopware version 6.5.8.7 contains a patch for this issue. As a workaround, use Redis for Sessions, as this does not trigger the exploit code.
References
- https://github.com/advisories/GHSA-c2f9-4jmm-v45m
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27917... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-27917 Vendor Advisory
- https://github.com/shopware/shopware/releases/tag/v6.5.8.7 URL
- https://github.com/shopware/shopware/security/advisories/GHSA-c2f9-4jmm-v45m Vendor Advisory
- https://github.com/shopware/shopware/commit/7d9cb03225efca5f97e69b800d8747598dd1... Patch
- https://github.com/shopware/storefront/commit/3477e4a425d3c54b4bfae82d703fe3838d... Patch
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Type
CWE-524Use of Cache Containing Sensitive Information
Timeline
Published6 Mar 2024
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta