Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. shopware/platform
  4. ›
  5. CVE-2023-2017

CVE-2023-2017: Improper Control of Generation of Code in Twig rendered views

April 17, 2023 (updated April 28, 2023)

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.

References

  • docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023
  • github.com/advisories/GHSA-7v2v-9rm4-7m8f
  • github.com/shopware/platform/releases/tag/v6.4.20.1
  • github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f
  • nvd.nist.gov/vuln/detail/CVE-2023-2017

Code Behaviors & Features

Detect and mitigate CVE-2023-2017 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.1.0 up to 6.4.20.0, version 6.5.0.0

Fixed versions

  • 6.4.20.1

Solution

Upgrade to version 6.4.20.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/shopware/platform/CVE-2023-2017.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:14 +0000.