A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-27917

CVE-2024-27917: Shopware Information Disclosure Flaw

CVE-2024-27917 is an information disclosure vulnerability in Shopware that exposes session cookies through cached 404 pages. This article covers the technical details, affected versions, and mitigation strategies.

Published: June 2, 2026

CVE-2024-27917 Overview

CVE-2024-27917 is a session cookie exposure vulnerability in Shopware, an open commerce platform built on the Symfony Framework and Vue. Starting with Shopware 6.5.8.0, 404 response pages are cached to improve performance. The Symfony Session Handler appends the session cookie to the response, and when this response is cached, subsequent visitors to a 404 page receive another user's session cookie. The flaw is tracked under [CWE-524: Use of Cache Containing Sensitive Information]. Shopware released version 6.5.8.7 to address the issue.

Critical Impact

Cached 404 responses can leak Symfony session cookies to unauthenticated visitors, enabling session hijacking and unauthorized account access on affected Shopware storefronts.

Affected Products

  • Shopware 6.5.8.0 through 6.5.8.6
  • Shopware Storefront component (versions prior to the patched commit)
  • Deployments using the default Symfony Session Handler (file-based or non-Redis backends)

Discovery Timeline

  • 2024-03-06 - CVE-2024-27917 published to NVD
  • 2025-09-10 - Last updated in NVD database

Technical Details for CVE-2024-27917

Vulnerability Analysis

The vulnerability stems from an interaction between Shopware's HTTP cache layer and Symfony's default session handling. When a browser without an existing session requests a non-existent URL, Symfony's Session Handler creates a new session and assigns the resulting PHPSESSID cookie to the response object. Shopware's NotFoundSubscriber then stores that response in the HTTP cache.

Subsequent requests for the same 404 URL receive the cached response, including the original visitor's session cookie. Because the cookie is treated as valid by the application, any user who receives it inherits that session context. This results in cross-user session assignment and potential hijacking of authenticated sessions if a logged-in user later associates their account with the leaked session identifier.

Root Cause

The root cause is the absence of cookie sanitization in the NotFoundSubscriber cache path. The cached response includes a Set-Cookie header containing the Symfony session identifier. The cache key does not vary by session, so the same response — and the same cookie — is served to every visitor who hits the cached 404 entry.

Deployments using the PHP Redis extension for session storage do not trigger the exploit path because the Redis-backed handler does not emit the session cookie in the same response flow.

Attack Vector

An unauthenticated remote attacker requests any URL that returns a 404 on an affected Shopware storefront. If the response is the first to populate the cache entry, subsequent visitors receive the attacker-poisoned cookie, or the attacker receives a cookie tied to another user's pending session. The attacker can then replay the captured session identifier to access the victim's storefront context.

php
     */
    private bool $handled = false;

+   private string $sessionName;
+
    /**
     * @internal
     *
     * @param AbstractCacheTracer<Response> $cacheTracer
+    * @param array{name?: string} $sessionOptions
     */
    public function __construct(
        private readonly HttpKernelInterface $httpKernel,

Source: Shopware patch commit 7d9cb03. The patch introduces a $sessionName property and $sessionOptions constructor argument so the NotFoundSubscriber can identify and strip the session cookie before caching the response.

Detection Methods for CVE-2024-27917

Indicators of Compromise

  • Multiple distinct client IP addresses presenting the same PHPSESSID (or configured session name) cookie value within a short time window.
  • Cached 404 responses containing a Set-Cookie header for the Symfony session cookie.
  • Unexpected session continuity across users, such as cart contents or wishlist data appearing for unauthenticated visitors.

Detection Strategies

  • Inspect HTTP cache entries for 404 responses that include Set-Cookie headers tied to the session name.
  • Correlate web access logs to identify reuse of identical session identifiers across multiple source IPs and user agents.
  • Audit storefront sessions for ownership changes, including sessions transitioning from anonymous to authenticated without a fresh cookie issuance.

Monitoring Recommendations

  • Alert on 404 cache hits that propagate Set-Cookie headers downstream from the reverse proxy or CDN.
  • Track the Shopware version in use across all storefront nodes and flag any host running 6.5.8.0 through 6.5.8.6.
  • Review CDN and HTTP cache configurations to confirm that responses with Set-Cookie headers are excluded from shared caches.

How to Mitigate CVE-2024-27917

Immediate Actions Required

  • Upgrade Shopware to version 6.5.8.7 or later, which contains the official patch for CVE-2024-27917.
  • Invalidate the existing HTTP cache after upgrading to purge any poisoned 404 entries that may still serve leaked cookies.
  • Rotate all active storefront sessions by clearing the session store so any cookies leaked prior to the patch cannot be replayed.

Patch Information

Shopware addressed the issue in release v6.5.8.7. The fix is documented in GHSA-c2f9-4jmm-v45m and applied through the core commit 7d9cb03 and the storefront commit 3477e4a. The patch passes %session.storage.options% into the NotFoundSubscriber so the session cookie is removed before the 404 response is cached.

Workarounds

  • Configure Shopware to use Redis for session storage via the PHP Redis extension, which bypasses the vulnerable code path.
  • Disable HTTP caching for 404 responses until the upgrade can be deployed.
  • Strip Set-Cookie headers from 404 responses at the reverse proxy or CDN layer as a defense-in-depth control.
bash
# Example: configure Redis-backed sessions in Shopware (.env)
SHOPWARE_HTTP_CACHE_ENABLED=1
SESSION_HANDLER=redis
REDIS_URL=redis://127.0.0.1:6379/0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechShopware

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-524
  • Technical References
  • GitHub Release v6.5.8.7
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-c2f9-4jmm-v45m

  • GitHub Storefront Commit Update
  • Related CVEs
  • CVE-2026-32142: Shopware Information Disclosure Flaw

  • CVE-2026-31888: Shopware Information Disclosure Flaw

  • CVE-2026-32100: Shopware Information Disclosure Flaw

  • CVE-2025-67648: Shopware Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English