Craft CMS before 4.18.8 and 5.11.0 Twig Sandbox Allowlist Bypass via Array Filters
Craft CMS 4.0.0 before 4.18.8 and 5.0.0 before 5.11.0 contains a Twig sandbox allowlist bypass because the column, contains, filterByValue, index, where, and multisort filters resolve caller-supplied keys via ArrayHelper::getValue() without consulting the sandbox security policy. Authenticated Control Panel users can supply dot-path keys to traverse the craft global and disclose the securityKey, database credentials, and auth tokens.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-112771
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:57 UTC · Revision 1
Source evidence
Craft CMS before 4.18.8 and 5.11.0 Twig Sandbox Allowlist Bypass via Array Filters
core-osv · Original sourcePublished 19 Oct 2026, 19:10 UTC
Craft CMS 4.0.0 before 4.18.8 and 5.0.0 before 5.11.0 contains a Twig sandbox allowlist bypass because the column, contains, filterByValue, index, where, and multisort filters resolve caller-supplied keys via ArrayHelper::getValue() without consulting the sandbox security policy. Authenticated Control Panel users can supply dot-path keys to traverse the craft global and disclose the securityKey, database credentials, and auth tokens.
osv:CVE-2026-112771
Complete source record
{
"id": "68db7f2d2ad42700ced7fc5c048f4e157026f13d92a0826862aa5d460eb3dc16",
"url": "https://osv.dev/vulnerability/CVE-2026-112771",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Craft CMS before 4.18.8 and 5.11.0 Twig Sandbox Allowlist Bypass via Array Filters",
"summary": "Craft CMS 4.0.0 before 4.18.8 and 5.0.0 before 5.11.0 contains a Twig sandbox allowlist bypass because the column, contains, filterByValue, index, where, and multisort filters resolve caller-supplied keys via ArrayHelper::getValue() without consulting the sandbox security policy. Authenticated Control Panel users can supply dot-path keys to traverse the craft global and disclose the securityKey, database credentials, and auth tokens.",
"evidence": "osv:CVE-2026-112771",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-112771",
"aliases": [
"CVE-2026-112771",
"GHSA-j697-8x93-7mp2"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/craftcms/cms",
"type": "GIT",
"events": [
{
"introduced": "982efcd14d7e93a1a54f0905b61f242de6b53d8a"
},
{
"fixed": "feda70e264a9330919bea9eb607148198135afd4"
},
{
"introduced": "f6a8fb685d44e387435825e3a96809eeda4973a6"
},
{
"fixed": "2255717bfd5cc502751601aa68bf72eea035cd47"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.18.8"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.11.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-112771.json"
}
}
],
"modified": "2026-10-28T02:30:22.597645082Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112771.json",
"https://github.com/craftcms/cms/security/advisories/GHSA-j697-8x93-7mp2",
"https://nvd.nist.gov/vuln/detail/CVE-2026-112771",
"https://www.vulncheck.com/advisories/craft-cms-before-4.18.8-and-5.11.0-twig-sandbox-allowlist-bypass-via-array-filters"
],
"provider_metadata": {
"cwe_ids": [
"CWE-200"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112771.json"
}
},
"related_cves": [
{
"value": "CVE-2026-112771",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488867,
"published_at": "2026-10-19T19:10:50.47+00:00"
}