CVE-2024-27917: Shopware's session is persistent in Cache for 404 pages

Published Mar 6, 2024
·
Updated

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.savehandler = redis session.savepath = "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.

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
composer/shopware/platform>=6.5.8.0<6.5.8.7
6.5.8.7
composer/shopware/storefront>=6.5.8.0<6.5.8.7
6.5.8.7
Shopware Shopware>=6.5.8.0<6.5.8.7

Event History

Mar 6, 2024
Advisory Published
via GitHub·03:06 PM
CVE Published
via MITRE·07:36 PM
Data Sourced
via MITRE·07:36 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-27917?

CVE-2024-27917 has a high severity rating due to its impact on session security in the affected Shopware versions.

2

How do I fix CVE-2024-27917?

To fix CVE-2024-27917, upgrade to Shopware version 6.5.8.7 or later.

3

Which versions of Shopware are affected by CVE-2024-27917?

CVE-2024-27917 affects Shopware versions 6.5.8.0 to 6.5.8.6.

4

What is the impact of CVE-2024-27917?

The impact of CVE-2024-27917 is that a session cookie can be exposed via cached 404 pages, risking user session hijacking.

5

Is CVE-2024-27917 a remote code execution vulnerability?

No, CVE-2024-27917 does not involve remote code execution but rather exposes session data through caching.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203