{"id":"CVE-2024-42355","published":"2024-08-08T14:49:38Z","modified":"2024-08-08T15:32:50Z","title":"Shopware vulnerable to Server Side Template Injection in Twig using deprecation silence tag","vendor":"shopware","product":"shopware","tier":"tail","description":{"text":"Shopware, an open ecommerce platform, has a new Twig Tag `sw_silent_feature_call` which silences deprecation messages while triggered in this tag. Prior to versions 6.6.5.1 and 6.5.8.13, it accepts as parameter a string the feature flag name to silence, but this parameter is not escaped properly and allows execution of code. Update to Shopware 6.6.5.1 or 6.5.8.13 to receive a patch. For older versions of 6.2, 6.3,  and 6.4, corresponding security measures are also available via a plugin.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00863,"percentile":0.59477,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/shopware/shopware/security/advisories/GHSA-27wp-jvhw-v4xp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/shopware/core/commit/a784aa1cec0624e36e0ee4d41aeebaed40e0442f","tags":["x_refsource_MISC"]},{"url":"https://github.com/shopware/core/commit/d35ee2eda5c995faeb08b3dad127eab65c64e2a2","tags":["x_refsource_MISC"]},{"url":"https://github.com/shopware/shopware/commit/445c6763cc093fbd651e0efaa4150deae4ae60da","tags":["x_refsource_MISC"]},{"url":"https://github.com/shopware/shopware/commit/8504ba7e56e53add6a1d5b9d45015e3d899cd0ac","tags":["x_refsource_MISC"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":11.9},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"shopware","affectedVersions":[{"vendor":"shopware","product":"shopware","versions":["<= 6.5.8.12",">= 6.6.0.0, <= 6.6.5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-08-08T15:26:25.050210Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"shopware/core","vulnerableRanges":["<6.5.8.13",">=6.6.0.0, <6.6.5.1"],"patched":["6.5.8.13","6.6.5.1"],"from":["GHSA-27wp-jvhw-v4xp"],"provenance":"source"},{"ecosystem":"Packagist","package":"shopware/platform","vulnerableRanges":["<6.5.8.13",">=6.6.0.0, <6.6.5.1"],"patched":["6.5.8.13","6.6.5.1"],"from":["GHSA-27wp-jvhw-v4xp"],"provenance":"source"}],"summary":{"text":"The flaw is in Shopware's Twig template handling, specifically the newly added sw_silent_feature_call tag, which silences deprecation messages and does not properly escape the feature flag name passed to it, allowing code execution. An attacker with network access and low-privilege authenticated access, and no user interaction, can exploit this to execute code, though the affected versions are those before 6.6.5.1 and 6.5.8.13.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:55Z"},"euvd":{"id":"EUVD-2024-2460","exploited":false,"provenance":"source"}}