CVE-2023-2017
HIGH 8.8CVSS 3.1Shopware Has Improper Control of Generation of Code in Twig rendered views
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.
- Published
- 17 Apr 2023
- Last modified
- 24 Oct 2026
- Assigned by
- info@starlabs.sg
- NVD status
- Modified
- Weakness
- CWE-1336CWE-184CWE-94
- Also known as
- GHSA-7v2v-9rm4-7m8f
- Sources
- NVDJSONOSV GHSA-7v2v-9rm4-7m8fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | info@starlabs.sg (Secondary) | 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 |
| 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 |
| OSV | GitHub | 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.1.0, <= 6.4.20.0 | |
| NVD | shopware | shopwarecpe:2.3:a:shopware:shopware:6.5.0.0:rc1:*:*:*:*:*:* |
= 6.5.0.0 | |
| NVD | shopware | shopwarecpe:2.3:a:shopware:shopware:6.5.0.0:rc2:*:*:*:*:*:* |
= 6.5.0.0 | |
| NVD | shopware | shopwarecpe:2.3:a:shopware:shopware:6.5.0.0:rc3:*:*:*:*:*:* |
= 6.5.0.0 | |
| OSV | Packagist | shopware/platform | < 6.4.20.1 | 6.4.20.1 |
| OSV | Packagist | shopware/core | < 6.4.20.1 | 6.4.20.1 |
References
- https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023 · Vendor Advisory, WEB
- https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f · Vendor Advisory, WEB
- https://starlabs.sg/advisories/23/23-2017/ · Exploit, Mitigation, Third Party Advisory, WEB
- https://github.com/shopware/shopware/security/advisories/GHSA-7v2v-9rm4-7m8f · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-2017 · ADVISORY
- https://github.com/shopware/platform · PACKAGE
- https://github.com/shopware/platform/releases/tag/v6.4.20.1 · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 17 Apr 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 18 Apr 2023)