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.
Published: 2026-10-26
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

A server‑side template injection flaw in the Twig theme rendering sandbox of Mautic permits an authenticated user with the core:themes:create permission to upload a crafted theme. When the malicious template is rendered, arbitrary code is executed on the server with the web‑server’s privileges, enabling the attacker to run operating‑system commands, read sensitive files including configuration and database credentials, write files, and access internal services. The vulnerability stems from an incomplete enforcement of the sandbox and is classified under CWE‑1336.

Affected Systems

All Mautic installations that include the legacy Twig sandbox for theme rendering are affected, especially those where the core:themes:create permission is granted to the Administrator role or delegated to other roles. The flaw exists in all releases prior to the patch that addresses GHSA‑9fx4‑7cmj‑47vg, which corrects the sandbox enforcement. Because the permission is authenticated, any user with the necessary role can trigger the vulnerability.

Risk and Exploitability

With a CVSS score of 8.8, the flaw is high severity. The EPSS is not available, but the lack of publicly known exploits and the requirement for authenticated access reduce the likelihood of widespread exploitation. The flaw is not listed in CISA’s KEV catalog. The likely attack vector is via a legitimate CMS user uploading a malicious theme; because the template rendering occurs server‑side, the attacker can achieve full remote code execution if the sandbox is breached.

Generated by OpenCVE AI on October 26, 2026 at 15:28 UTC.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Upgrade Mautic to the latest released version or apply the patch that enforces the Twig sandbox correctly.
  • Restrict the core:themes:create permission to trusted administrator accounts only and avoid delegating theme creation to operator‑level roles as a temporary measure.
  • Monitor for unauthorized theme uploads and review server logs for unexpected template rendering activity.

Generated by OpenCVE AI on October 26, 2026 at 15:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 26 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 26 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
Title Server‑Side Template Injection in Mautic Twig Theme Rendering Allows Arbitrary Code Execution

Mon, 26 Oct 2026 14:00:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Mautic

Published:

Updated: 2026-10-26T15:35:53.698Z

Reserved: 2026-10-22T06:39:15.178Z

Link: CVE-2026-115189

cve-icon Vulnrichment

Updated: 2026-10-26T15:34:06.302Z

cve-icon NVD

Status : Deferred

Published: 2026-10-26T14:16:30.203

Modified: 2026-10-26T16:17:16.177

Link: CVE-2026-115189

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-26T15:30:15Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine