CVE-2023-2017 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023 | CVE | Vendor Advisory |
| https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f | CVE | Vendor Advisory |
| https://starlabs.sg/advisories/23/23-2017/ | CVE | ExploitMitigationThird Party Advisory |
| https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023 | [email protected] | Vendor Advisory |
| https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f | [email protected] | Vendor Advisory |
| https://starlabs.sg/advisories/23/23-2017/ | [email protected] | ExploitMitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
| CWE-184 | Incomplete List of Disallowed Inputs | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| shopware shopware | >= 6.1.0, <= 6.4.20.0 6.5.0.0 rc1 6.5.0.0 rc2 6.5.0.0 rc3 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 28, 2023 | Initial Analysis | [email protected] |
| Apr 19, 2023 | CVE Modified | [email protected] |