CVE-2023-22731
HIGH 8.8CVSS 3.1Shopware vulnerable to Improper Control of Generation of Code in Twig rendered views
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 vulnerability. This problem has been fixed with 6.4.18.1 with an override of the specified filters until the integration of the Sandbox extension has been finished. Users are advised to upgrade. Users of major versions 6.1, 6.2, and 6.3 may also receive this fix via a plugin.
- Published
- 17 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-93cw-f5jj-x85w
- Sources
- NVDJSONOSV GHSA-93cw-f5jj-x85wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | shopware | shopwarecpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:* |
< 6.4.18.1 | 6.4.18.1 |
| OSV | Packagist | shopware/platform | < 6.4.18.1 | 6.4.18.1 |
| OSV | Packagist | shopware/core | < 6.4.18.1 | 6.4.18.1 |
References
- https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-01-2023?category=security-updates · Patch, Vendor Advisory, WEB
- https://github.com/shopware/platform/commit/89d1ea154689cb6202e0d3a0ceeae0febb0c09e1 · Patch, Third Party Advisory, WEB
- https://github.com/shopware/platform/security/advisories/GHSA-93cw-f5jj-x85w · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-22731 · ADVISORY
- https://github.com/shopware/platform · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 17 Jan 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 Jan 2023)