CVE-2024-42355 — Vulnerability in shopware/core — CVE Details
Shopware vulnerable to Server Side Template Injection in Twig using deprecation silence tag
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.67%). Schedule for your next planned update.
Does your project use an affected shopware/core version?
Paste your composer.lock to check it for CVE-2024-42355 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Shopware has a new Twig Tag sw_silent_feature_call which silences deprecation messages while triggered in this tag.
It accepts as parameter a string the feature flag name to silence, but this parameter is not escaped properly and allows execution of code.
Patches
Update to Shopware 6.6.5.1 or 6.5.8.13
Workarounds
For older versions of 6.2, 6.3, and 6.4, corresponding security measures are also available via a plugin. For the full range of functions, we recommend updating to the latest Shopware version.
Advisory Timeline
- First published August 8, 2024 (840 days ago).
- Last revised August 12, 2024 — 4 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "shopware/core:^6.6.5.1"
composer require "shopware/platform:^6.5.8.13"
composer require "shopware/platform:^6.6.5.1"
composer require "shopware/core:^6.5.8.13"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| shopware/core Packagist · Affected: v6.6.0.0, v6.6.0.1, v6.6.0.2, v6.6.0.3 (+9 more) | 6.6.5.1 |
| shopware/platform Packagist · Affected: 6.3.0.0, 6.3.0.1, 6.3.0.2, 6.3.1.0 (+108 more) | 6.5.8.13 |
| shopware/platform Packagist · Affected: v6.6.0.0, v6.6.0.1, v6.6.0.2, v6.6.0.3 (+9 more) | 6.6.5.1 |
| shopware/core Packagist · Affected: 6.3.0.0, 6.3.0.1, 6.3.0.2, 6.3.1.0 (+108 more) | 6.5.8.13 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1336
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
References
- https://github.com/shopware/shopware/security/advisories/GHSA-27wp-jvhw-v4xpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-42355ADVISORY
- https://github.com/shopware/core/commit/a784aa1cec0624e36e0ee4d41aeebaed40e0442fWEB
- https://github.com/shopware/core/commit/d35ee2eda5c995faeb08b3dad127eab65c64e2a2WEB
- https://github.com/shopware/shopware/commit/445c6763cc093fbd651e0efaa4150deae4ae60daWEB
- https://github.com/shopware/shopware/commit/8504ba7e56e53add6a1d5b9d45015e3d899cd0acWEB
- https://github.com/shopware/shopwarePACKAGE
Frequently Asked Questions
- What is CVE-2024-42355?
- Shopware vulnerable to Server Side Template Injection in Twig using deprecation silence tag. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.3/10).
- How do I check if my project is affected by CVE-2024-42355?
- CVE-2024-42355 affects shopware/core and shopware/platform. It has a 1.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-42355 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 77.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-22731CRITICAL
Shopware vulnerable to Improper Control of Generation of Code in Twig rendered views
- CVE-2024-22406CRITICAL
Blind SQL injection in shopware
- CVE-2024-42356HIGH
Shopware vulnerable to Server Side Template Injection in Twig using Context functions
- CVE-2026-103035HIGH
TeamPass folder re-parenting authorization bypass
- CVE-2026-31887HIGH
Shopware: Unauthenticated data extraction possible through store-api.order endpoint
- CVE-2026-31889HIGH
Shopware vulnerable to a potential take over of app credentials
- CVE-2026-110782HIGH
SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)