---
id: CVE-2026-109305
title: >-
  Craft CMS from 5.10.2 before 5.10.14 contains a Twig sandbox bypass that
  allows non-admin users to invoke PHP callables through the "has some" and "has
  every" operators
summary: >-
  Craft CMS from 5.10.2 before 5.10.14 contains a Twig sandbox bypass that
  allows non-admin users to invoke PHP callables through the "has some" and "has
  every" operators. Users with the System Messages permission can supply
  two-argument c…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-1336
published: '2026-10-12'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T19:18:23.793'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109305'
references:
  - url: 'https://github.com/craftcms/cms/security/advisories/GHSA-vfcw-xv8p-8rj2'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/craft-cms-5.10.2-before-5.10.14-twig-sandbox-bypass-rce-via-has-some-has-every
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00485
epssPercentile: 0.40004
ingestedAt: '2026-10-12T18:00:08.195Z'
---

## Overview

Craft CMS from 5.10.2 before 5.10.14 contains a Twig sandbox bypass that allows non-admin users to invoke PHP callables through the "has some" and "has every" operators. Users with the System Messages permission can supply two-argument callables such as passthru or system in sandboxed templates to execute code as the web user.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
