Skip to main content
Public proof of conceptFix available

CVE-2024-42356

A public proof of concept exists; no exploitation attested.

  • Published2024-08-08
  • Fixed in6.6.5.1 · 6.5.8.13
  • WeaknessCWE-1336 · CWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Shopware is an open commerce platform. Prior to versions 6.6.5.1 and 6.5.8.13, the `context` variable is injected into almost any Twig Template and allows to access to current language, currency information. The context object allows also to switch for a short time the scope of the Context as a helper with a callable function. The function can be called also from Twig and as the second parameter allows any callable, it's possible to call from Twig any statically callable PHP function/method. It's not possible as customer to provide any Twig code, the attacker would require access to Administration to exploit it using Mail templates or using App Scripts. Update to Shopware 6.6.5.1 or 6.5.8.13 to receive a patch. For older versions of 6.1, 6.2, 6.3 and 6.4 corresponding security measures are also available via a plugin.

Timeline

dates in UTC
  1. 2024-08-0815:15CVE publishedNVD

Versions per branch

NVD · OSV · CISA-ADP
Shopware
BranchAffectedFixed in
6.6≥ 6.6.0.0, < 6.6.5.16.6.5.1
6.5< 6.5.8.136.5.8.13
6.5≤ 6.5.8.12no fix published
6.6≥ 6.6.0.0, ≤ 6.6.5.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • shopware
    Affected
    • = <= 6.5.8.12no fix stated
    • = >= 6.6.0.0, <= 6.6.5.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-08-08

Fix

  1. Update Shopware to 6.6.5.1 · 6.5.8.13

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-08-09
  • CNACVSS 3.18.3known since 2026-10-23
  • NVDCVSS 3.17.2read 2026-10-23
  • CNAweakness (CWE)CWE-1336known since 2026-10-23
  • NVDweakness (CWE)CWE-94read 2026-10-23
  • FIRST EPSSEPSS score1.2 %2026-11-25
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2024-08-08

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published
2024-08-08
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-35jp-8cgg-p4wj

Frequently asked questions

What is CVE-2024-42356?

Shopware is an open commerce platform. Prior to versions 6.6.5.1 and 6.5.8.13, the `context` variable is injected into almost any Twig Template and allows to access to current language, currency information. The context object allows also to switch for a short time the scope of the Context as a helper with a callable function. The function can be called also from Twig and as the second parameter allows any callable, it's possible to call from Twig any statically callable PHP function/method. It's not possible as customer to provide any Twig code, the attacker would require access to Administration to exploit it using Mail templates or using App Scripts. Update to Shopware 6.6.5.1 or 6.5.8.13 to receive a patch. For older versions of 6.1, 6.2, 6.3 and 6.4 corresponding security measures are also available via a plugin.

Is CVE-2024-42356 actively exploited?

A proof-of-concept exploit exists for CVE-2024-42356, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-42356?

CVE-2024-42356 has a CVSS v3 base score of 7.2 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Running shopware/platform? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record