// For flags

CVE-2023-2017

Improper Control of Generation of Code in Twig Rendered Views in Shopware

Severity Score

8.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

1
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

*Credits: Ngo Wei Lin (@Creastery) of STAR Labs SG Pte. Ltd. (@starlabs_sg)
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2023-04-13 CVE Reserved
  • 2023-04-17 CVE Published
  • 2024-08-02 CVE Updated
  • 2024-08-02 First Exploit
  • 2024-11-22 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-94: Improper Control of Generation of Code ('Code Injection')
  • CWE-184: Incomplete List of Disallowed Inputs
  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
CAPEC
  • CAPEC-242: Code Injection
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Shopware
Search vendor "Shopware"
Shopware
Search vendor "Shopware" for product "Shopware"
>= 6.1.0 <= 6.4.20.0
Search vendor "Shopware" for product "Shopware" and version " >= 6.1.0 <= 6.4.20.0"
-
Affected
Shopware
Search vendor "Shopware"
Shopware
Search vendor "Shopware" for product "Shopware"
6.5.0.0
Search vendor "Shopware" for product "Shopware" and version "6.5.0.0"
rc1
Affected
Shopware
Search vendor "Shopware"
Shopware
Search vendor "Shopware" for product "Shopware"
6.5.0.0
Search vendor "Shopware" for product "Shopware" and version "6.5.0.0"
rc2
Affected
Shopware
Search vendor "Shopware"
Shopware
Search vendor "Shopware" for product "Shopware"
6.5.0.0
Search vendor "Shopware" for product "Shopware" and version "6.5.0.0"
rc3
Affected