← Vulnerability feed

Vulnerability record · CVE-2024-42356 · published 8 August 2024

CVE-2024-42356: Shopware code injection vulnerability

Shopware · Shopware

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.

7.2 CVSS 3.1 High EPSS 0.65% · top 50.7% CWE-1336 · CWE-1336CWE-94 · Code injection
7.2CVSS 3.1 base score
0.65%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
5References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-42356 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-42355Shopware code injection vulnerabilityShopware, an open ecommerce platform, has a new Twig Tag `sw_silent_feature_call` which silences deprecation messages while triggered in this tag. Pr…EPSS 0.86%9.8CVE-2024-42357Shopware sql injection vulnerabilityShopware is an open commerce platform. Prior to versions 6.6.5.1 and 6.5.8.13, the Shopware application API contains a search functionality which ena…EPSS 0.60%9.8CVE-2024-22406Shopware sql injection vulnerabilityShopware is an open headless commerce platform. The Shopware application API contains a search functionality which enables users to search through in…EPSS 0.64%9.8CVE-2023-22732Shopware insufficient session expiration vulnerabilityShopware is an open source commerce platform based on Symfony Framework and Vue js. The Administration session expiration was set to one week, when a…EPSS 0.73%9.8CVE-2021-37708Shopware command injection vulnerabilityShopware is an open source eCommerce platform. Versions prior to 6.4.3.1 contain a command injection vulnerability in mail agent settings. Version 6.…EPSS 2.4%9.8CVE-2016-3109Shopware improper input validation vulnerabilityThe backend/Login/load/ script in Shopware before 5.1.5 allows remote attackers to execute arbitrary code.EPSS 28%8.9CVE-2026-31889Shopware authentication bypass by spoofing vulnerabilityShopware is an open commerce platform. Prior to 6.6.10.15 and 6.7.8.1, a vulnerability in the Shopware app registration flow that could, under specif…EPSS 0.41%8.9CVE-2026-31887Shopware incorrect authorization vulnerabilityShopware is an open commerce platform. Prior to 6.7.8.1 and 6.6.10.15, an insufficient check on the filter types for unauthenticated customers allows…EPSS 0.39%

Source: NIST National Vulnerability Database (record CVE-2024-42356), CISA KEV, FIRST EPSS (scores of 2026-10-03). This page is refreshed as NVD updates the record.