Pimcore CMS Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed
Published 17 Jun 2026 · Updated 2 Sept 2026
Affected packages
- Affected
- >=12.0.0-RC1 <=12.3.8
- Fixed in
- No fix released
- Affected
- <=11.5.14.1
- Fixed in
- No fix released
Details
Pimcore CMS/DXP version 12.3.8 contains a sandbox bypass vulnerability that allows authenticated administrative attackers to execute arbitrary methods on PHP objects by exploiting empty checkMethodAllowed() and checkPropertyAllowed() implementations in the custom Twig SecurityPolicy. Attackers can supply malicious Twig templates through the DataObject ClassDefinition Layout\Text component to perform arbitrary file reads, execute arbitrary database queries, and potentially achieve remote code execution via PHP object gadget chains, with the pimcore_* function wildcard further broadening the bypass to all Pimcore Twig functions.
Is GHSA-7p36-fq2r-4h7r in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pimcore/pimcore, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-11407
- Linkgithub.com/pimcore/pimcore/pull/19193
- Linkgithub.com/pimcore/pimcore/commit/fffa7f6396329e88610db70a8652529bbc734892
- Packagegithub.com/pimcore/pimcore
- Linkwww.vulncheck.com/advisories/pimcore-cms-twig-sandbox-bypass-via-securitypolicy-checkmethodallowed
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.