{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-2017","id":"CVE-2023-2017","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 execu","descriptionLong":"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","published":"2023-04-17T10:18:27.543Z","updated":"2026-10-28T02:30:31.250617431Z","reserved":"2023-04-13T04:21:56.530Z","status":"Modified","rejected":false,"assigner":"STAR_Labs","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"STAR_Labs"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"STAR_Labs"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"starlabs.sg"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["Shopware AG Shopware 6"],"affectedProducts":[{"vendor":"Shopware AG","product":"Shopware 6","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"6.4.20.0","status":"affected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.5.0.0-rc4","status":"affected","version":"6.5.0.0-rc1","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"shopware/platform","purl":"pkg:composer/shopware/platform","ranges":["<6.4.20.1"],"fixed":["6.4.20.1"],"advisory":"GHSA-7v2v-9rm4-7m8f"},{"ecosystem":"Packagist","name":"shopware/core","purl":"pkg:composer/shopware/core","ranges":["<6.4.20.1"],"fixed":["6.4.20.1"],"advisory":"GHSA-7v2v-9rm4-7m8f"}],"cwes":["CWE-184","CWE-1336","CWE-94"],"aliases":["GHSA-7v2v-9rm4-7m8f"],"references":[{"url":"https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023","tags":["vendor-advisory","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f","tags":["vendor-advisory","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://starlabs.sg/advisories/23/23-2017/","tags":["third-party-advisory","x_transferred","Exploit","Mitigation","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2017.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2017","tags":["advisory"]},{"url":"https://github.com/shopware/shopware/security/advisories/GHSA-7v2v-9rm4-7m8f","tags":["web"]},{"url":"https://github.com/shopware/platform","tags":["package"]},{"url":"https://github.com/shopware/platform/releases/tag/v6.4.20.1","tags":["web"]},{"url":"https://starlabs.sg/advisories/23/23-2017","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.02066,"epssPercentile":0.8177,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-2017","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2017","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-2017","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7v2v-9rm4-7m8f","ok":true,"note":"GHSA-7v2v-9rm4-7m8f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-2017","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}