CVE-2026-11407: Php Twig Sandbox Policy Empty Method Property Check

Twig sandbox SecurityPolicy callback implemented as a no-op. Twig calls checkMethodAllowed() before every method call and checkPropertyAllowed() before every property access inside a sandboxed template; an empty implementation lets templates invoke arbitrary methods and read arbitrary properties on any object reachable from the template context (e.g. object.

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-11407-php-twig-sandbox-policy-empty-method-property-check --engine opengrep

Description

Twig sandbox SecurityPolicy callback implemented as a no-op. Twig calls checkMethodAllowed() before every method call and checkPropertyAllowed() before every property access inside a sandboxed template; an empty implementation lets templates invoke arbitrary methods and read arbitrary properties on any object reachable from the template context (e.g. object.