All vulnerabilities

Servers and applications

GHSA-vfcw-xv8p-8rj2

Non-admin RCE via Twig sandbox bypass in the "has some"/ "has every" operators

Severity
High
Published
22 Sept 2026
Last changed
22 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.10.14
Weakness
Server-side template injection (CWE-1336)
Sources
Project advisories (GitHub)

Description

Twig 3.26 changed CoreExtension::checkArrow() from taking the Environment, from which it derived the live sandbox state, to taking a plain bool $isSandboxed. PR 18924 adapts Craft to that signature. It does so correctly for the four callable-taking filters (filter, map, reduce, sort) by registering them with 'needs_is_sandboxed' => true.

Extension::arraySome() and arrayEvery() are not filters. They are emitted from compiled node code in HasSomeBinary/HasEveryBinary as Extension::arraySome($this->env, , ), which is three arguments, so the new fourth parameter keeps its $isSandboxed = false default on every call. checkArrow(false, …) only raises a deprecation instead of throwing, and CoreExtension::arraySome() then invokes the right-hand operand directly as $arrow($v, $k). The sandbox policy filters tags, filters, functions, methods, and properties, but not binary operators, so a sandboxed template can name any PHP callable.

From craftcms/cms's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Craft CMSServers and applications · github:craftcms/cms
  • From 5.10.2 before 5.10.14

About Craft CMS

Build bespoke content experiences with Craft.

From its GitHub repository.
Monthly downloads (Packagist)
79,322Packagist, 15 Nov 2026
Total downloads (Packagist)
3,879,755Packagist, 15 Nov 2026
GitHub stars
3,628GitHub, 15 Nov 2026
Forks
713GitHub, 15 Nov 2026
Latest release
5.12.1GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
First published on GitHub
27 Jan 2017GitHub

Release lines

ReleaseLatestSecurity fixes
55.12.1Until 31 Dec 2031
44.18.9Ended 30 Apr 2026
33.9.15Ended 30 Apr 2024
22.9.2Ended 31 Jan 2022

From endoflife.date.

References