Improper Neutralization of Special Elements Used in a Template Engine in Shopware - CVE-2023-2017

 

Improper Neutralization of Special Elements Used in a Template Engine in Shopware - CVE-2023-2017

Published: April 17, 2023 / Updated: May 19, 2026


Vulnerability identifier: #VU131883
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-2017
CWE-ID: CWE-1336
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improper neutralization of special elements used in a template engine in Twig rendered views when processing crafted PHP closures passed as strings or arrays. A remote user can supply crafted PHP closures that bypass the allow list to execute arbitrary code.


Affected software

Shopware

How to mitigate CVE-2023-2017

Install security update from vendor's website.

Shopware - update to 6.4.20.1

External References

Related Security Bulletins