CVEfocus › CVE database › CVE-2023-2017

CVE-2023-2017Improper Control of Generation of Code in Twig Rendered Views in Shopware

CVSS 8.8 HighEPSS 2.1% (higher than 82% of CVEs)Published 2023-04-17Updated 2025-02-05Assigner: STAR_Labs

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.

CWE-1336CWE-184

What to do

Fixed builds are available from Packagist: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Packagist libraryshopware/coreFixed6.4.20.1GHSA-7v2v-9rm4-7m8f
Packagist libraryshopware/platformFixed6.4.20.1GHSA-7v2v-9rm4-7m8f

What the vendor says

As published in the CVE record by STAR_Labs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Users are advised to upgrade to v6.4.20.1 to resolve this issue.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.