Security mailing lists by PureSourceCode

CVE-2023-22731

HIGH 8.8CVSS 3.1

Shopware vulnerable to Improper Control of Generation of Code in Twig rendered views

Shopware is an open source commerce platform based on Symfony Framework and Vue js. In a Twig environment without the Sandbox extension, it is possible to refer to PHP functions in twig filters like map, filter, sort. This allows a template to call any global PHP function and thus execute arbitrary code. The attacker must have access to a Twig environment in order to exploit this vulnerability. This problem has been fixed with 6.4.18.1 with an override of the specified filters until the integration of the Sandbox extension has been finished. Users are advised to upgrade. Users of major versions 6.1, 6.2, and 6.3 may also receive this fix via a plugin.

Published
17 Jan 2023
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-94
Also known as
GHSA-93cw-f5jj-x85w
Sources
NVDJSONOSV GHSA-93cw-f5jj-x85wJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD shopware shopware
cpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:*
< 6.4.18.1 6.4.18.1
OSV Packagist shopware/platform < 6.4.18.1 6.4.18.1
OSV Packagist shopware/core < 6.4.18.1 6.4.18.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 17 Jan 2023)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 Jan 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.