CVE-2023-2017

Public Exploit
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.

Remediation

Solution:

  • Users are advised to upgrade to v6.4.20.1 to resolve this issue.

Categories

8.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 1.35% Top 25%
Vendor Advisory shopware.com Vendor Advisory github.com
Affected: Shopware AG Shopware 6
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-2017?
CVE-2023-2017 has been scored as a high severity vulnerability.
How to fix CVE-2023-2017?
To fix CVE-2023-2017: Users are advised to upgrade to v6.4.20.1 to resolve this issue.
Is CVE-2023-2017 being actively exploited in the wild?
It is possible that CVE-2023-2017 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-2017?
CVE-2023-2017 affects Shopware AG Shopware 6.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.