CVE-2023-22731 json
Improper Control of Generation of Code in Twig rendered views in shopware
published 2023-01-17 3 y ago modified 2026-06-17 4 mo ago also GHSA-93cw-f5jj-x85w , EUVD-2023-0419
- cvss
- 10.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist shopware/platform 6.4.18.1
- packagist shopware/core 6.4.18.1
- shopware shopware 6.4.18.1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
1.39% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 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/platform | <6.4.18.1 |
6.4.18.1 |
| packagist | shopware/core | <6.4.18.1 |
6.4.18.1 |
Affected products
- shopware platform
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/shopware/platform/commit/89d1ea154689cb6202e0d3a0ceeae0febb0c09e1
web, patch, third-party-advisory
-
docs.shopware.com
/en/shopware-6-en/security-updates/security-update-01-2023?category=security-updates
web, patch, vendor-advisory
-
github.com
/shopware/platform/security/advisories/GHSA-93cw-f5jj-x85w
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-22731
advisory
-
github.com
/shopware/platform
package
Sources
- CVE List CVE-2023-22731
- GitHub Advisory GHSA-93cw-f5jj-x85w
- NVD CVE-2023-22731
Fencer Vulns 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.