Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. shopware/shopware
  4. ›
  5. GHSA-7336-ghhp-f2qj

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

May 21, 2024

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}"}

References

  • community.shopware.com/_detail_1989.html
  • docs.shopware.com/en/shopware-5-en/security-updates/security-update-01-2017?category=shopware-5-en/security-updates
  • github.com/FriendsOfPHP/security-advisories/blob/master/shopware/shopware/2017-01-25.yaml
  • github.com/advisories/GHSA-7336-ghhp-f2qj
  • github.com/shopware5/shopware
  • github.com/shopware5/shopware/commit/6113d30a90e626154e438aa896e656c0f38694f3

Code Behaviors & Features

Detect and mitigate GHSA-7336-ghhp-f2qj with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.2.15 before 5.2.16, version 5.2.15

Fixed versions

  • 5.2.16

Solution

Upgrade to version 5.2.16 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

packagist/shopware/shopware/GHSA-7336-ghhp-f2qj.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:25 +0000.