Craft CMS 5.0.0 before 5.11.0 RCE via Twig Sandbox Behavior Injection
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-112773
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:28 UTC · Revision 1
Source evidence
Craft CMS 5.0.0 before 5.11.0 RCE via Twig Sandbox Behavior Injection
core-osv · Original sourcePublished 19 Oct 2026, 19:10 UTC
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.
osv:CVE-2026-112773
Complete source record
{
"id": "dc6a729dc1604f712ae0943135514c52c16f50f62f6d114767e88718b684c218",
"url": "https://osv.dev/vulnerability/CVE-2026-112773",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Craft CMS 5.0.0 before 5.11.0 RCE via Twig Sandbox Behavior Injection",
"summary": "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.",
"evidence": "osv:CVE-2026-112773",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-112773",
"aliases": [
"CVE-2026-112773",
"GHSA-wr79-9v6x-5rfq"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/craftcms/cms",
"type": "GIT",
"events": [
{
"introduced": "f6a8fb685d44e387435825e3a96809eeda4973a6"
},
{
"fixed": "2255717bfd5cc502751601aa68bf72eea035cd47"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.11.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.11.0"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-112773.json"
}
}
],
"modified": "2026-10-28T02:30:29.838294757Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112773.json",
"https://github.com/craftcms/cms/security/advisories/GHSA-wr79-9v6x-5rfq",
"https://nvd.nist.gov/vuln/detail/CVE-2026-112773",
"https://www.vulncheck.com/advisories/craft-cms-5.0.0-before-5.11.0-rce-via-twig-sandbox-behavior-injection"
],
"provider_metadata": {
"cwe_ids": [
"CWE-94"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112773.json"
}
},
"related_cves": [
{
"value": "CVE-2026-112773",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496825,
"published_at": "2026-10-19T19:10:51.883+00:00"
}