High severityOSV Advisory· Published Jan 14, 2026· Updated Jan 14, 2026
Shopware Improper Control of Generation of Code in Twig rendered views
CVE-2026-23498
Description
Shopware is an open commerce platform. From 6.7.0.0 to before 6.7.6.1, a regression of CVE-2023-2017 leads to an array and array crafted PHP Closure not checked being against allow list for the map(...) override. This vulnerability is fixed in 6.7.6.1.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
shopware/shopwarePackagist | >= 6.7.0.0, < 6.7.6.1 | 6.7.6.1 |
shopware/corePackagist | >= 6.7.0.0, < 6.7.6.1 | 6.7.6.1 |
Affected products
1Patches
13966b05590e2fix: map in security extension for array callables
2 files changed · +6 −1
src/Core/Framework/Adapter/Twig/SecurityExtension.php+5 −0 modified@@ -45,6 +45,11 @@ public function map(?iterable $array, string|callable|\Closure $function): ?arra return null; } + if (\is_array($function)) { + $function = implode('::', $function); + \assert(\is_callable($function)); + } + if (\is_string($function) && !\in_array($function, $this->allowedPHPFunctions, true)) { throw AdapterException::securityFunctionNotAllowed($function); }
tests/unit/Core/Framework/Adapter/Twig/SecurityExtensionTest.php+1 −1 modified@@ -185,7 +185,7 @@ class SecurityExtensionGadget { public static function do(): void { - throw new \Error('This should not be called'); + // no op, do not throw as we need to check that an exception is thrown by the security extension, not here } }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-7cw6-7h3h-v8pfghsaADVISORY
- github.com/advisories/GHSA-7v2v-9rm4-7m8fghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-23498ghsaADVISORY
- github.com/shopware/shopware/commit/3966b05590e29432b8485ba47b4fcd14dd0b8475ghsax_refsource_MISCWEB
- github.com/shopware/shopware/security/advisories/GHSA-7cw6-7h3h-v8pfghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.