---
id: CVE-2026-115189
title: >-
  A server-side template injection vulnerability exists in the Twig theme
  rendering sandbox of Mautic
summary: >-
  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
  restrictio…
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'
cvssSource: cna
cwe:
  - CWE-1336
product: mautic/core
affected:
  - mautic/core >= 1.3.0 < 5.2.12
  - mautic/core >= 6.0.0 < 6.0.10
  - mautic/core >= 7.0.0 < 7.2.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-26T14:47:38.169849Z'
published: '2026-10-26'
updated: '2026-10-26'
sourceUpdated: '2026-10-26T15:35:53.698Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-115189'
references:
  - url: 'https://github.com/mautic/mautic/security/advisories/GHSA-h7pm-79gc-8867'
tags:
  - cve.org
ingestedAt: '2026-10-26T14:27:31.838Z'
---

## Overview

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.

## Affected

- `mautic/core >= 1.3.0 < 5.2.12`
- `mautic/core >= 6.0.0 < 6.0.10`
- `mautic/core >= 7.0.0 < 7.2.2`

## Remediation

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

### Workarounds

There are no official workarounds. To mitigate this vulnerability without upgrading, restrict the core:themes:create permission to trusted administrator accounts only and do not delegate theme creation to operator-level roles.
