Read the docs
TI-2026-51007 Aliases CVE-2026-72781GHSA-f5wm-88jv-g5hx

Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape

Priority MEDIUM 41CWE-693Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-693.

Summary

Craft CMS versions >= 5.0.0-RC1 before 5.10.7 and >= 4.0.0-RC1 before 4.18.3 contain a remote code execution vulnerability in the Twig sandbox mechanism. Because Craft marks the ElementInterface as safe (via the AllowedInSandbox attribute) and the sandbox allowlisting extends to the entire class hierarchy (craft\base\Component up to yii\base\Component), an authenticated attacker with permission to access the control panel can render a malicious Twig template that abuses the yii\base\Component arbitrary function-call gadget to execute arbitrary code, even when the Twig sandbox is enabled via enableTwigSandbox().

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00786 56th percentileScored 2026-11-07
Fix Fixed cms (craftcms): 5.10.7, 4.18.3craftcms/cms (Packagist): 5.10.7, 4.18.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Craft CMScms5.0.0-RC1 to before 5.10.75.10.7Patch availableCNA
Craft CMScms4.0.0-RC1 to before 4.18.34.18.3Patch availableCNA
—craftcms/cms (Packagist)5.0.0-RC1 to before 5.10.75.10.7Patch availableGHSA-f5wm-88jv-g5hx
—craftcms/cms (Packagist)4.0.0-RC1 to before 4.18.34.18.3Patch availableGHSA-f5wm-88jv-g5hx
  • cms VendorCraft CMS Affected 5.0.0-RC1 to before 5.10.7 Fixed in 5.10.7 Patch available CNA
  • cms VendorCraft CMS Affected 4.0.0-RC1 to before 4.18.3 Fixed in 4.18.3 Patch available CNA
  • craftcms/cms (Packagist) Vendor— Affected 5.0.0-RC1 to before 5.10.7 Fixed in 5.10.7 Patch available GHSA-f5wm-88jv-g5hx
  • craftcms/cms (Packagist) Vendor— Affected 4.0.0-RC1 to before 4.18.3 Fixed in 4.18.3 Patch available GHSA-f5wm-88jv-g5hx

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*——Craft CMS
  • cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* Versions — — ·Craft CMS

Remediation

  • Fix · CNA cms (craftcms) Fixed in 5.10.7
  • Fix · CNA cms (craftcms) Fixed in 4.18.3
  • Fix · GHSA-f5wm-88jv-g5hx craftcms/cms (Packagist) Fixed in 5.10.7 Advisory →
  • Fix · GHSA-f5wm-88jv-g5hx craftcms/cms (Packagist) Fixed in 4.18.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-72781
  2. 2026-10-03 Alias added: GHSA-f5wm-88jv-g5hx

References

  • TI-2025-23503 Craft CMS Allows Remote Code Execution KEVCVSS 3.1CRITICAL 10.0
  • TI-2024-37138 RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms KEVCVSS 4.0CRITICAL 9.3
  • TI-2025-16994 Potential RCE with a compromised security key in craft/cms KEVCVSS 3.1HIGH 8.1
  • TI-2025-24595 Craft CMS stores user-provided content in session files KEVCVSS 4.0MEDIUM 6.9
  • TI-2023-22284 Craft CMS Remote Code Execution vulnerability CVSS 3.1CRITICAL 10.0
  • TI-2024-25171 Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. CVSS 3.1CRITICAL 9.8
See all 203 →

Sources