
Python proof-of-concept for CVE-2026-72778, a Craft CMS condition.config JSON-merge RCE that reaches Yii behavior keys and executes a command gadget.
condition.config RCECraft cleanses the outer condition configuration but subsequently JSON-decodes and merges
condition.config without re-cleansing it. Yii behavior/event keys hidden in that string
therefore reach FieldLayout object creation and execute a command gadget.
This request shape was confirmed against Craft CMS 5.9.8 as the web-service user. The PoC requires --execute
and treats HTTP 200 as delivery—not proof—unless a response marker is supplied.
python3 -m pip install -r requirements.txt
python3 poc.py https://target.example editor id --execute
For authorized security testing only.