# GHSA-7336-ghhp-f2qj: Shopware Remote Code Execution Vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-21T20:52:57.000Z
- Modified: 2024-12-06T05:42:56.820Z
- Weaknesses: CWE-74

## Description

Under certain circumstances, it’s possible to execute an unauthorized foreign code in Shopware in versions prior to 5.2.16. One possible threat is if a template that doesn’t derive from the Shopware standard has been completely copied. Themes or plugins that execute or overwrite the following template code are vulnerable.

- Affected file: emotion.tpl

Path template file "Emotion template": templates / _default / frontend / forms / elements.tpl
Path template file "Responsive template": themes/Frontend/Bare/frontend/forms/elements.tpl

The complete line beginning with: `{eval var=$sSupport.sFields[$sKey]...` should be exchanged with the following:

```
{$sSupport.sFields[$sKey]|replace:'{literal}':''|replace:'{/literal}':''|replace:'%*%':"{s name='RequiredField' namespace='frontend/register/index'}{/s}"}
```

(As written by GitHub Advisory Database.)

## Affected

- shopware/shopware (Packagist): from 5.2.15 before 5.2.16

## References

- <https://github.com/shopware5/shopware/commit/6113d30a90e626154e438aa896e656c0f38694f3> (web)
- <https://community.shopware.com/_detail_1989.html> (web)
- <https://docs.shopware.com/en/shopware-5-en/security-updates/security-update-01-2017?category=shopware-5-en/security-updates> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/shopware/shopware/2017-01-25.yaml> (web)
- <https://github.com/shopware5/shopware> (package)

## Sources

- GitHub Advisory Database: [GHSA-7336-ghhp-f2qj](https://github.com/advisories/GHSA-7336-ghhp-f2qj), CC-BY-4.0, modified 2024-12-06

---

Page: https://cve.day/GHSA-7336-ghhp-f2qj · Whole record: https://cve.day/GHSA-7336-ghhp-f2qj.json · Rebuilt by cve.day 2026-11-25T22:56:31.402Z
