CVE-2026-11407

Pimcore CMS 12.3.8 Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed

Published Jun 17, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from empty implementations of checkMethodAllowed() and checkPropertyAllowed() in the custom Twig SecurityPolicy of Pimcore CMS/DXP version 12.3.8. Authenticated administrators can inject malicious Twig templates through the DataObject ClassDefinition Layout\Text component. This bypass permits execution of arbitrary PHP object methods, enabling actions such as arbitrary file reads, arbitrary database queries, and potentially remote code execution via PHP object gadget chains. The loophole also extends to all Pimcore Twig functions through the pimcore_* function wildcard.

Affected Systems

The affected product is Pimcore CMS/DXP version 12.3.8, released by Pimcore GmbH. No other versions are noted as vulnerable. Deployments running this version where admins can create or edit DataObject ClassDefinitions are at risk.

Risk and Exploitability

The CVSS score of 8.6 denotes high severity, yet the EPSS score is below 1%, indicating a low probability of exploitation at the time of disclosure. The vulnerability is not listed in the CISA KEV catalogue. Successful exploitation requires authenticated administrative privileges and the ability to submit a Twig template through the web interface. Consequently, the risk remains significant for organizations that cannot apply the fix promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the patch from commit fffa7f6396329e88610db70a8652529bbc734892 or upgrade to a version that incorporates the fix.
  • If upgrading immediately is not feasible, restrict administrative access to the DataObject ClassDefinition Layout\Text component so that only trusted users can supply Twig templates.
  • Employ web application monitoring to detect suspicious or unexpected Twig template uploads and block them until remediation completes.

Generated by OpenCVE AI on June 18, 2026 at 17:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7p36-fq2r-4h7r Pimcore CMS Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed
History
Type Values Removed Values Added
CPEs cpe:2.3:a:pimcore:pimcore:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Pimcore
Pimcore pimcore
Vendors & Products Pimcore
Pimcore pimcore
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Pimcore CMS 12.3.8 Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:00 PM
Reserved
Jun 5, 2026, 6:28 PM
Status
Deferred
Published
Jun 17, 2026, 8:16 PM
Modified
Oct 26, 2026, 12:10 PM