---
title: "GHSA-7336-ghhp-f2qj: Shopware Remote Code Execution Vulnerability"
url: https://erroneo.us/security/ghsa/GHSA-7336-ghhp-f2qj/
description: "GHSA-7336-ghhp-f2qj (critical, Composer (PHP)): Shopware Remote Code Execution Vulnerability. Under certain circumstances, it’s possible to execute an…"
type: advisory
section: "Security Digest"
date_published: 2024-05-21
date_modified: 2024-05-21
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-7336-ghhp-f2qj"
license: All rights reserved. Quote with attribution and a link.
---

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

## Affected packages

- Composer (PHP) `shopware/shopware` = 5.2.15 → fixed: 5.2.16

## Details

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:

## Sources

- [GitHub Advisory GHSA-7336-ghhp-f2qj](https://github.com/advisories/GHSA-7336-ghhp-f2qj)
- [github.com](https://github.com/shopware5/shopware/commit/6113d30a90e626154e438aa896e656c0f38694f3)
- [community.shopware.com](https://community.shopware.com/_detail_1989.html)
- [docs.shopware.com](https://docs.shopware.com/en/shopware-5-en/security-updates/security-update-01-2017?category=shopware-5-en/security-updates)
- [github.com](https://github.com/FriendsOfPHP/security-advisories/blob/master/shopware/shopware/2017-01-25.yaml)

---
Source page: https://erroneo.us/security/ghsa/GHSA-7336-ghhp-f2qj/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
