CVE-2023-2017
published high CVSS 3.1 · 8.8Improper Control of Generation of Code in Twig Rendered Views in Shopware
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Shopware AG | — | Shopware 60 through 6.4.20.0 · 6.5.0.0-rc1 through 6.5.0.0-rc4 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- STAR_Labs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Shopware AG | Shopware 6 | 0 through 6.4.20.0 (affected · semver)6.5.0.0-rc1 through 6.5.0.0-rc4 (affected · semver)Default: unaffected | STAR_Labs · cna |
Weaknesses
2- CWE-184 CWE-184 Incomplete List of Disallowed Inputs
- CWE-1336 CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
3Provider assertions
3STAR_Labs · cna
Improper Control of Generation of Code in Twig Rendered Views in Shopware
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ea6678a6c260e57d7804bf8af07ac6f96c2a507ecf70e8de9425567ee735e0f8
- Ingested
- 23 Sep 2026, 08:08:06 UTC
- Source record
- Official CVE record