p PatchFirst

CVE-2026-112773

CVE-2026-112773 · Craft CMS 5.0.0 before 5.11.0 RCE via Twig Sandbox Behavior Injection

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox by passing uncleansed criteria to getNext, getPrev, or getOwners. Attackers can inject Yii "as" or "on" config keys to attach malicious event handlers that execute when the element query runs, achieving code execution as the web user.

CVSS 8.7 · High · EPSS 0.7% · Fix available

Published
Updated

Affected products and versions

  • cms

    Versions
    • ≥ 5.0.0, < 5.11.0: Affected (semver)
    • 5.11.0: Not affected (semver)

    Update to 5.11.0

Original sources

Check your server →