CVE-2023-2017
Improper Control of Generation of Code in Twig Rendered Views in Shopware
- Published
- Updated
- Reserved
- Assigned by
- STAR_Labs
Description
Server-side Template Injection (SSTI) in Shopware 6 (<= v6.4.20.0, v6.5.0.0-rc1 <= v6.5.0.0-rc4), affecting both shopware/core and shopware/platform GitHub repositories, allows remote attackers with access to a Twig environment without the Sandbox extension to bypass the validation checks in `Shopware\Core\Framework\Adapter\Twig\SecurityExtension` and call any arbitrary PHP function and thus execute arbitrary code/commands via usage of fully-qualified names, supplied as array of strings, when referencing callables. Users are advised to upgrade to v6.4.20.1 to resolve this issue. This is a bypass of CVE-2023-22731.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| STAR_LabsCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 2.1% · top 19% of all CVEs (4 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Weakness
Affected products
- affected ≤ 6.4.20.0
- affected 6.5.0.0-rc1 – ≤ 6.5.0.0-rc4
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistshopware/coreGHSA-7v2v-9rm4-7m8f (opens in a new tab)
- Packagistshopware/platformGHSA-7v2v-9rm4-7m8f (opens in a new tab)
What to do
Solution: Users are advised to upgrade to v6.4.20.1 to resolve this issue.
References (3)
- https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023 (opens in a new tab)vendor-advisoryx_transferred
- https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f (opens in a new tab)vendor-advisoryx_transferred
- https://starlabs.sg/advisories/23/23-2017/ (opens in a new tab)third-party-advisoryx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7v2v-9rm4-7m8f (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2023-2017)Record last updated .