Improper Control of Generation of Code in Twig Rendered Views in Shopware
Published Apr 17, 2023
8.8
HIGHCVSS 3.1
EPSS 2.07%
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.
Affected products
-
- Version 0StatusaffectedConstraints<=6.4.20.0
- Version 6.5.0.0-rc1StatusaffectedConstraints<=6.5.0.0-rc4
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Shopware AG | Shopware 6 | unaffected |
|
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Vendor solution
Users are advised to upgrade to v6.4.20.1 to resolve this issue.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Feb 5, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2023–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (21 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.07% (0.02066) | 80.68th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.08% (0.02083) | 79.03th | v5 (v2026.06.15) |
| Nov 21, 2025 | 1.68% (0.01683) | 81.62th | v4 (v2025.03.14) |
| Nov 18, 2025 | 2.88% (0.02878) | 85.05th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.04% (0.01038) | 75.41th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.76% (0.03763) | 79.83th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.04% (0.01038) | 75.88th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.13% (0.01132) | 85.33th | v3 (v2023.03.01) |
| May 19, 2024 | 0.81% (0.00815) | 81.76th | v3 (v2023.03.01) |
| Apr 23, 2024 | 1.15% (0.01153) | 84.67th | v3 (v2023.03.01) |
| Mar 17, 2024 | 0.78% (0.00779) | 80.95th | v3 (v2023.03.01) |
| Feb 22, 2024 | 0.67% (0.00673) | 79.25th | v3 (v2023.03.01) |
| Feb 21, 2024 | 0.56% (0.00563) | 77.12th | v3 (v2023.03.01) |
| Oct 8, 2023 | 0.56% (0.00563) | 75.12th | v3 (v2023.03.01) |
| Aug 20, 2023 | 0.47% (0.00472) | 72.51th | v3 (v2023.03.01) |
| Jul 25, 2023 | 0.50% (0.00496) | 73.04th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.34% (0.00345) | 67.70th | v3 (v2023.03.01) |
| May 8, 2023 | 0.41% (0.00413) | 70.10th | v3 (v2023.03.01) |
| Apr 29, 2023 | 0.29% (0.00294) | 64.58th | v3 (v2023.03.01) |
| Apr 19, 2023 | 0.06% (0.00064) | 26.34th | v3 (v2023.03.01) |
| Apr 18, 2023 | 0.05% (0.00053) | 18.84th | v3 (v2023.03.01) |
References (7)
- https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023 vendor-advisoryVendor Advisory
- https://github.com/advisories/GHSA-7v2v-9rm4-7m8f Advisory
- https://github.com/shopware/platform/releases/tag/v6.4.20.1
- https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f vendor-advisoryVendor Advisory
- https://github.com/shopware/shopware/security/advisories/GHSA-7v2v-9rm4-7m8f
- https://nvd.nist.gov/vuln/detail/CVE-2023-2017
- https://starlabs.sg/advisories/23/23-2017 third-party-advisoryExploitMitigationThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023 | vendor-advisoryVendor Advisory | |
| https://github.com/advisories/GHSA-7v2v-9rm4-7m8f | Advisory | |
| https://github.com/shopware/platform/releases/tag/v6.4.20.1 | ||
| https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f | vendor-advisoryVendor Advisory | |
| https://github.com/shopware/shopware/security/advisories/GHSA-7v2v-9rm4-7m8f | ||
| https://nvd.nist.gov/vuln/detail/CVE-2023-2017 | ||
| https://starlabs.sg/advisories/23/23-2017 | third-party-advisoryExploitMitigationThird Party Advisory |
Change history (0)
No recorded changes yet.