Servers and applications
CVE-2023-22731
Improper Control of Generation of Code in Twig rendered views
- Severity
- High 8.8
- Published
- 17 Jan 2023
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 6.4.18.1
- Also known as
- GHSA-93cw-f5jj-x85w
- Sources
- NVD, Project advisories (GitHub)
Description
Shopware is an open source commerce platform based on Symfony Framework and Vue js. In a Twig environment **without the Sandbox extension**, it is possible to refer to PHP functions in twig filters like `map`, `filter`, `sort`. This allows a template to call any global PHP function and thus execute arbitrary code. The attacker must have access to a Twig environment in order to exploit this…
Affected software
| Software | Affected versions |
|---|---|
ShopwareServers and applications · cpe:a:shopware:shopware |
|
ShopwareServers and applications · github:shopware/shopware |
|
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2023-22731
- CVE.org https://www.cve.org/CVERecord?id=CVE-2023-22731
- GitHub Advisory Database https://github.com/advisories/GHSA-93cw-f5jj-x85w
- github.com https://github.com/shopware/shopware/security/advisories/GHSA-93cw-f5jj-x85w