Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS05M2N3LWY1amoteDg1d84AAxBk

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

Impact

In Twig environment without the Sandbox extension, it is possible to refer to PHP functions in twig filters like map, filter, sort. This allows in the template to call any global PHP function.

Patches

The 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.

Workarounds

For older versions of 6.1, 6.2, and 6.3, corresponding security measures are also available via a plugin. For the full range of functions, we recommend updating to the latest Shopware version.

References

https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-01-2023?category=security-updates

Permalink: https://github.com/advisories/GHSA-93cw-f5jj-x85w
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS05M2N3LWY1amoteDg1d84AAxBk
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 1 year ago
Updated: about 1 year ago


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

Identifiers: GHSA-93cw-f5jj-x85w, CVE-2023-22731
References: Repository: https://github.com/shopware/platform
Blast Radius: 24.2

Affected Packages

packagist:shopware/core
Dependent packages: 163
Dependent repositories: 298
Downloads: 2,418,165 total
Affected Version Ranges: <= 6.4.18.0
Fixed in: 6.4.18.1
All affected versions: 6.0.0, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.1.5, 6.1.6, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.4.1-0.0, 6.4.1-0.1, 6.4.1-1.0, 6.4.1-1.1, 6.4.1-2.0, 6.4.1-3.0, 6.4.1-4.0, 6.4.1-5.0, 6.4.1-5.1, 6.4.1-5.2, 6.4.1-6.0, 6.4.1-6.1, 6.4.1-7.0, 6.4.1-7.1, 6.4.1-7.2, 6.4.1-8.0
All unaffected versions:
packagist:shopware/platform
Dependent packages: 6
Dependent repositories: 38
Downloads: 1,112,659 total
Affected Version Ranges: <= 6.4.18.0
Fixed in: 6.4.18.1
All affected versions: 5.3.1, 6.0.0, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.1.5, 6.1.6, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.4.1-0.0, 6.4.1-0.0-dev, 6.4.1-0.1, 6.4.1-1.0, 6.4.1-1.0-dev, 6.4.1-1.1, 6.4.1-2.0, 6.4.1-2.0-dev, 6.4.1-3.0, 6.4.1-3.0-dev, 6.4.1-4.0, 6.4.1-4.0-dev, 6.4.1-5.0, 6.4.1-5.0-dev, 6.4.1-5.1, 6.4.1-5.2, 6.4.1-5.2-dev, 6.4.1-6.0, 6.4.1-6.0-dev, 6.4.1-6.1, 6.4.1-7.0, 6.4.1-7.0-dev, 6.4.1-7.1, 6.4.1-7.2, 6.4.1-7.2-dev, 6.4.1-8.0
All unaffected versions: