{"id":"CVE-2023-2017","state":"PUBLISHED","title":"Improper Control of Generation of Code in Twig Rendered Views in Shopware","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.\n","publishedAt":"2023-04-17T10:18:27.543Z","updatedAt":"2025-02-05T20:46:43.936Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"STAR_Labs"},"assigner":"STAR_Labs","products":["Shopware AG Shopware 6"],"affected":[{"vendor":"Shopware AG","product":"Shopware 6","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"6.4.20.0","versionType":"semver"},{"version":"6.5.0.0-rc1","status":"affected","lessThanOrEqual":"6.5.0.0-rc4","versionType":"semver"}]}],"references":["https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023","https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f","https://starlabs.sg/advisories/23/23-2017/"],"weaknesses":["CWE-184","CWE-1336"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/2xxx/CVE-2023-2017.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-2017","state":"PUBLISHED","datePublished":"2023-04-17T10:18:27.543Z","dateUpdated":"2025-02-05T20:46:43.936Z","assignerShortName":"STAR_Labs","assignerOrgId":"b1571b85-cbc9-431f-830b-0c8155323a69","dateReserved":"2023-04-13T04:21:56.530Z"},"containers":{"cna":{"title":"Improper Control of Generation of Code in Twig Rendered Views in Shopware","descriptions":[{"lang":"en","value":"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.\n"}],"affected":[{"vendor":"Shopware AG","product":"Shopware 6","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"6.4.20.0","versionType":"semver"},{"version":"6.5.0.0-rc1","status":"affected","lessThanOrEqual":"6.5.0.0-rc4","versionType":"semver"}]}],"references":[{"url":"https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023","tags":["vendor-advisory"]},{"url":"https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f","tags":["vendor-advisory"]},{"url":"https://starlabs.sg/advisories/23/23-2017/","tags":["third-party-advisory"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-184","description":"CWE-184 Incomplete List of Disallowed Inputs","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-1336","description":"CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"STAR_Labs","orgId":"b1571b85-cbc9-431f-830b-0c8155323a69","dateUpdated":"2023-04-19T06:34:45.957Z"},"credits":[{"lang":"en","type":"reporter","user":"00000000-0000-4000-9000-000000000000","value":"Ngo Wei Lin (@Creastery) of STAR Labs SG Pte. Ltd. (@starlabs_sg)"}],"impacts":[{"capecId":"CAPEC-242","descriptions":[{"lang":"en","value":"CAPEC-242 Code Injection"}]}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"\nUsers are advised to upgrade to v6.4.20.1 to resolve this issue.\n\n<br>"}],"value":"Users are advised to upgrade to v6.4.20.1 to resolve this issue.\n\n\n"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023","tags":["vendor-advisory","x_transferred"]},{"url":"https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f","tags":["vendor-advisory","x_transferred"]},{"url":"https://starlabs.sg/advisories/23/23-2017/","tags":["third-party-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T06:12:19.518Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-05T20:46:34.501269Z","id":"CVE-2023-2017","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-05T20:46:43.936Z"}}]}}}