---
id: CVE-2026-11407
title: Pimcore CMS Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed
summary: Pimcore CMS Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed
severity: high
cvss: 7.2
cwe:
  - CWE-1336
vendor: pimcore
product: pimcore/pimcore
ecosystem: composer
affected:
  - pimcore/pimcore <= 12.3.8
published: '2026-06-17'
updated: '2026-06-19'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-7p36-fq2r-4h7r'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-11407'
  - url: 'https://github.com/pimcore/pimcore/pull/19193'
  - url: >-
      https://github.com/pimcore/pimcore/commit/fffa7f6396329e88610db70a8652529bbc734892
  - url: >-
      https://www.vulncheck.com/advisories/pimcore-cms-twig-sandbox-bypass-via-securitypolicy-checkmethodallowed
  - url: 'https://github.com/advisories/GHSA-7p36-fq2r-4h7r'
tags:
  - ghsa
  - composer
epss: 0.00623
epssPercentile: 0.47556
ingestedAt: '2026-06-29T14:31:47.153Z'
---

## Overview

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.

## Affected packages

- `pimcore/pimcore <= 12.3.8`

## Remediation

Refer to the advisory for the patched release.
