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.
History

Mon, 12 Aug 2024 16:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94

Fri, 09 Aug 2024 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Shopware
Shopware shopware
CPEs cpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:*
Vendors & Products Shopware
Shopware shopware
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 08 Aug 2024 15:00:00 +0000

Type Values Removed Values Added
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.
Title Shopware vulnerable to Server Side Template Injection in Twig using Context functions
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2024-08-08T14:52:53.604Z

Updated: 2024-08-09T15:55:33.933Z

Reserved: 2024-07-30T14:01:33.922Z

Link: CVE-2024-42356

cve-icon Vulnrichment

Updated: 2024-08-09T15:53:54.334Z

cve-icon NVD

Status : Analyzed

Published: 2024-08-08T15:15:18.247

Modified: 2024-08-12T15:34:08.190

Link: CVE-2024-42356

cve-icon Redhat

No data.