Skip to content
Heist/ feed
Back to feed
High

Shopware's session is persistent in Cache for 404 pages

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-27917
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:23 UTC · Revision 1

Source evidence

Shopware's session is persistent in Cache for 404 pages

core-osv · Original source

Published 6 Mar 2024, 19:36 UTC

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.

osv:CVE-2024-27917
Complete source record
{
  "id": "bc78a3fe6e570f227f72226313fc23611e76f16396f17c0dc27d740fa7d780d3",
  "url": "https://osv.dev/vulnerability/CVE-2024-27917",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Shopware's session is persistent in Cache for 404 pages",
    "summary": "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.",
    "evidence": "osv:CVE-2024-27917",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-27917",
      "aliases": [
        "CVE-2024-27917",
        "GHSA-c2f9-4jmm-v45m"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/shopware/shopware",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8e37b45a0ee03750338f884da58da8149db506ef"
                },
                {
                  "fixed": "71e5128b064cdf9ff00c329867d5b1b07d47cea6"
                },
                {
                  "fixed": "7d9cb03225efca5f97e69b800d8747598dd15ce3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.5.8.0"
                      },
                      {
                        "fixed": "6.5.8.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7d9cb03225efca5f97e69b800d8747598dd15ce3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "71e5128b064cdf9ff00c329867d5b1b07d47cea6"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v6.5.8.7"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/shopware/storefront",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3477e4a425d3c54b4bfae82d703fe3838dc21d3e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "3477e4a425d3c54b4bfae82d703fe3838dc21d3e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27917.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.220686270Z",
      "provider": "osv",
      "references": [
        "https://github.com/shopware/shopware/releases/tag/v6.5.8.7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27917.json",
        "https://github.com/shopware/shopware/security/advisories/GHSA-c2f9-4jmm-v45m",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-27917",
        "https://github.com/shopware/shopware/commit/7d9cb03225efca5f97e69b800d8747598dd15ce3",
        "https://github.com/shopware/storefront/commit/3477e4a425d3c54b4bfae82d703fe3838dc21d3e"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-524"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27917.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-27917",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517333,
  "published_at": "2024-03-06T19:36:27.357+00:00"
}