{"uuid": "6319e46c-e4cf-47f2-bfa6-eff4863baa23", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2025-66294", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/grav_twig_ssti_sandbox_bypass_rce.rb", "content": "{\"aliases\": [], \"arch\": \"cmd\", \"author\": [\"Tarek Nakkouch\"], \"autofilter_ports\": [80, 8080, 443, 8000, 8888, 8880, 8008, 3000, 8443], \"autofilter_services\": [\"http\", \"https\"], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits a Server-Side Template Injection (SSTI)\\n          vulnerability (CVE-2025-66294) in Grav CMS that allows bypassing the\\n          Twig sandbox to achieve remote code execution. The cleanDangerousTwig\\n          method uses weak regex that fails to sanitize nested Twig calls within\\n          the evaluate_twig function. To inject the payload, this module leverages\\n          CVE-2025-66301, a broken access control flaw that allows users with page\\n          editing privileges to modify the form's YAML frontmatter process section.\", \"disclosure_date\": \"2025-12-01\", \"fullname\": \"exploit/multi/http/grav_twig_ssti_sandbox_bypass_rce\", \"is_install_path\": true, \"mod_time\": \"2025-12-17 16:12:31 +0000\", \"name\": \"Grav CMS Twig SSTI Authenticated Sandbox Bypass RCE\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"ioc-in-logs\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/multi/http/grav_twig_ssti_sandbox_bypass_rce.rb\", \"platform\": \"Linux,Unix,Windows\", \"post_auth\": true, \"rank\": 600, \"ref_name\": \"multi/http/grav_twig_ssti_sandbox_bypass_rce\", \"references\": [\"CVE-2025-66294\", \"URL-https://github.com/advisories/GHSA-662m-56v4-3r8f\", \"CVE-2025-66301\", \"URL-https://github.com/advisories/GHSA-v8x2-fjv7-8hjh\"], \"rport\": 80, \"session_types\": false, \"targets\": [\"Unix/Linux Command Shell\", \"Windows Command Shell\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:49.606734Z"}