GHSA-7336-ghhp-f2qj json
Shopware Remote Code Execution Vulnerability
published 2y ago modified last yr.
- cvss
- 9.8
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
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}"} ```
Patch / fix
Is GHSA-7336-ghhp-f2qj in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | shopware/shopware | >=5.2.15, <5.2.16 |
5.2.16 |
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/shopware5/shopware/commit/6113d30a90e626154e438aa896e656c0f38694f3
web
-
community.shopware.com
/_detail_1989.html
web
-
docs.shopware.com
/en/shopware-5-en/security-updates/security-update-01-2017?category=shopware-5-en/security-updates
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/shopware/shopware/2017-01-25.yaml
web
-
github.com
/shopware5/shopware
package
Sources
- GitHub Advisory GHSA-7336-ghhp-f2qj
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.