Home / shopware / shopware / CVE-2024-42356
CVE-2024-42356: is it exploited, and which versions of shopware are affected and fixed?
CVE-2024-42356 is a template injection vulnerability in shopware. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: shopware/core before 6.5.8.13, shopware/platform before 6.5.8.13, shopware/platform from 6.6.0.0 before 6.6.5.1 and 1 more (GitHub advisory GHSA-35jp-8cgg-p4wj). Fixed in 6.5.8.13 and 6.6.5.1 (GitHub advisory GHSA-35jp-8cgg-p4wj). Severity: High (8.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:27 UTC.
What is CVE-2024-42356?
Shopware vulnerable to Server Side Template Injection in Twig using Context functions
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.
From the CVE record by GitHub_M, last updated August 9, 2024, 15:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| shopware | shopware | <= 6.5.8.12 >= 6.6.0.0, <= 6.6.5.0 |
As the CVE record by GitHub_M states it, last updated August 9, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | shopware/core | < 6.5.8.13 | 6.5.8.13 | GHSA-35jp-8cgg-p4wj |
| Packagist | shopware/platform | < 6.5.8.13 | 6.5.8.13 | GHSA-35jp-8cgg-p4wj |
| Packagist | shopware/platform | >= 6.6.0.0, < 6.6.5.1 | 6.6.5.1 | GHSA-35jp-8cgg-p4wj |
| Packagist | shopware/core | >= 6.6.0.0, < 6.6.5.1 | 6.6.5.1 | GHSA-35jp-8cgg-p4wj |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 8, 2024. Summary: Shopware vulnerable to Server Side Template Injection in Twig using Context functions.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| shopware | shopware | before 6.5.8.13 | application |
| shopware | shopware | from 6.6.0.0 before 6.6.5.1 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:49 UTC.
How severe is CVE-2024-42356?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L | GitHub_M |
| High 7.2 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-42356 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, August 9, 2024)
- EPSS
- 0.65% probability of exploitation activity in the next 30 days, percentile 52.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/shopware/shopware/security/advisories/GHSA-35jp-8cgg-p4wj x_refsource_CONFIRM
- https://github.com/shopware/core/commit/04183e0c02af3b404eb7d52c683734bfe0595038 x_refsource_MISC
- https://github.com/shopware/core/commit/a784aa1cec0624e36e0ee4d41aeebaed40e0442f x_refsource_MISC
- https://github.com/shopware/shopware/commit/8504ba7e56e53add6a1d5b9d45015e3d899cd0ac x_refsource_MISC
- https://github.com/shopware/shopware/commit/e43423bcc93c618c3036f94c12aa29514da8cf2e x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 30, 2024
- Published
- August 8, 2024, 14:52 UTC
- CVE record updated
- August 9, 2024, 15:55 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 07:49 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:27 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect shopware?
- Oct 13, 2026CVE-2026-104937 Shopware: cross-site scripting (XSS)
- Jul 23, 2026CVE-2026-48012 shopware: open redirect
- Jul 23, 2026CVE-2026-48013 shopware: server-side request forgery (SSRF)
- Jul 17, 2026CVE-2026-48009 shopware: information disclosure
- Jul 17, 2026CVE-2026-48014 shopware: missing authorization
- Jul 17, 2026CVE-2026-48010 shopware: privilege escalation (improper privilege management)
- Jul 17, 2026CVE-2026-48016 shopware: authorization bypass through a user-controlled key (IDOR)
- Jul 17, 2026CVE-2026-48015 shopware: cross-site scripting (XSS)
Questions about CVE-2024-42356
Is CVE-2024-42356 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.65% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of shopware are affected by CVE-2024-42356?
shopware/core before 6.5.8.13, shopware/platform before 6.5.8.13, shopware/platform from 6.6.0.0 before 6.6.5.1 and shopware/core from 6.6.0.0 before 6.6.5.1, per the GitHub advisory GHSA-35jp-8cgg-p4wj. The tables above give every range the sources list.
Which version fixes CVE-2024-42356?
6.5.8.13 and 6.6.5.1, per the GitHub advisory GHSA-35jp-8cgg-p4wj. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-42356?
High (8.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-42356?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.