{"id":"CVE-2026-115189","kind":"vulnerability","aliases":["CVE-2026-115189"],"related":[],"title":"Mautic: Twig theme sandbox escape lets an uploaded theme run server code","description":"A server-side template injection vulnerability exists in the Twig theme rendering sandbox of Mautic. The sandbox introduced to restrict user-uploaded theme templates (the fix for GHSA-9fx4-7cmj-47vg) does not fully enforce its restrictions, allowing a crafted theme template to escape the sandbox. An authenticated user with the core:themes:create permission can upload a malicious theme whose template is later rendered, resulting in execution of arbitrary code on the server with the privileges of the web server process. This allows the attacker to execute operating system commands, read server-side files including configuration files and database credentials, write files, and reach internal services. In default installations the core:themes:create permission is granted to the Administrator role, and in multi-operator setups it may be delegated to other roles. This is an incomplete fix for GHSA-9fx4-7cmj-47vg.","summary":"Mautic's sandbox for user-uploaded Twig theme templates does not fully restrict them, so a crafted theme can escape it. An authenticated user with the core:themes:create permission can run operating system commands on the server, read config files and database credentials, write files, and reach internal services.","severity":"high","cvss":8.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["mautic","package","php","self-hosted"],"not_affected_if":["managed-hosting","theme-upload-disabled"],"how_to_check":"- Check the installed Mautic version against the fixed release in the advisory (unknown in the sources)\n- Check which roles hold `core:themes:create` in Mautic's permission settings; the Administrator role has it by default","fix":"- Upgrade Mautic to a release that completes the fix for GHSA-9fx4-7cmj-47vg (fixed version unknown in the sources)\n- Remove `core:themes:create` from roles that do not need to upload themes until patched","status":"open","published_at":"2026-10-26T14:16:30+00:00","first_seen_at":"2026-10-26T14:30:36+00:00","triaged_at":"2026-10-26T14:32:07+00:00","updated_at":"2026-10-26T14:32:07+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-26T14:32:07Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade Mautic to a release that completes the fix for GHSA-9fx4-7cmj-47vg (fixed version unknown in the sources)\n- Remove `core:themes:create` from roles that do not need to upload themes until patched","reach":"internet","title":"Mautic: Twig theme sandbox escape lets an uploaded theme run server code","impact":"high","summary":"Mautic's sandbox for user-uploaded Twig theme templates does not fully restrict them, so a crafted theme can escape it. An authenticated user with the core:themes:create permission can run operating system commands on the server, read config files and database credentials, write files, and reach internal services.","category":"package","nicknames":[],"who_cares":["mautic","self-hosted","php"],"confidence":0.7,"needs_auth":"yes","worst_case":"Attacker runs operating system commands on the server and reads database credentials","analyst_note":"Confirm the fixed Mautic version and the exact upgrade path from the NVD entry or the GHSA-9fx4-7cmj-47vg advisory.","how_to_check":"- Check the installed Mautic version against the fixed release in the advisory (unknown in the sources)\n- Check which roles hold `core:themes:create` in Mautic's permission settings; the Administrator role has it by default","needs_analyst":true,"not_affected_if":["managed-hosting","theme-upload-disabled"],"who_is_affected":"Self-hosted Mautic installs where users can upload themes, which by default means the Administrator role. Installs where no one can create themes, or that run a fixed version, are not exposed. Hosted Mautic services are handled by the vendor.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000651,"input_tokens":3500,"output_tokens":601,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-115189':15A,18A '-2026':14A,17A '47vg':109C,224C '7cmj':108C,223C '9fx4':107C,222C 'administr':199C 'allow':116C,162C 'arbitrari':148C 'attack':164C 'authent':48B,126C 'code':12A,149C 'command':60B,169C 'config':65B 'configur':176C 'core':52B,130C,191C 'craft':42B,118C 'creat':54B,132C,193C 'credenti':69B,180C 'cve':13A,16A 'databas':68B,179C 'default':188C 'deleg':210C 'enforc':113C 'escap':5A,45B,122C 'execut':146C,166C 'exist':83C 'file':66B,71B,174C,177C,182C 'fix':103C,218C 'fulli':37B,112C 'ghsa':106C,221C 'ghsa-9fx4-7cmj-47vg':105C,220C 'grant':196C 'host':24B 'includ':175C 'incomplet':217C 'inject':81C 'instal':189C 'intern':74B,185C 'introduc':94C 'later':142C 'let':6A 'malici':137C 'mautic':1A,19B,25B,91C 'may':208C 'multi':204C 'multi-oper':203C 'oper':58B,167C,205C 'packag':20B 'permiss':55B,133C,194C 'php':21B 'privileg':155C 'process':160C 'reach':73B,184C 'read':64B,170C 'render':88C,143C 'restrict':38B,96C,115C 'result':144C 'role':200C,213C 'run':10A,57B 'sandbox':4A,27B,89C,93C,124C 'self':23B 'self-host':22B 'server':11A,63B,78C,152C,159C,172C 'server-sid':77C,171C 'servic':75B,186C 'setup':206C 'side':79C,173C 'system':59B,168C 'templat':34B,80C,101C,120C,140C 'theme':3A,9A,33B,43B,53B,87C,100C,119C,131C,138C,192C 'twig':2A,32B,86C 'upload':8A,31B,99C,135C 'user':30B,49B,98C,127C 'user-upload':29B,97C 'vulner':82C 'web':158C 'whose':139C 'write':70B,181C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted Mautic installs where users can upload themes, which by default means the Administrator role. Installs where no one can create themes, or that run a fixed version, are not exposed. Hosted Mautic services are handled by the vendor.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-26T14:16:30+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvss_by":"security@mautic.org","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-115189","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115189","severity":null,"published_at":"2026-10-26T14:16:30+00:00","modified_at":"2026-10-26T14:21:33+00:00","first_seen_at":"2026-10-26T14:30:36+00:00","fetched_at":"2026-10-26T14:30:36+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}