# Mautic has Server-Side Template Injection (SSTI) in Theme Templates

Critical severity, published 2026-07-02. Update mautic/core to the fixed version of your branch (5.2.11, 6.0.9, 7.1.2): composer update mautic/core.

Canonical URL: https://buzzphp.com/security/ghsa-9fx4-7cmj-47vg · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.9) |
| Published | 2026-07-02 |
| Updated | 2026-07-02 |
| CVE | [CVE-2026-9558](https://nvd.nist.gov/vuln/detail/CVE-2026-9558) |
| GHSA | [GHSA-9fx4-7cmj-47vg](https://github.com/advisories/GHSA-9fx4-7cmj-47vg) |
| Weakness | CWE-1336 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| mautic/core | >= 1.3.0, < 4.4.13 or >= 5.0.0, < 5.2.11 or >= 6.0.0, < 6.0.9 or >= 7.0.0, < 7.1.2 | 5.2.11, 6.0.9, 7.1.2 |

## What to do

Update mautic/core to the fixed version of your branch (5.2.11, 6.0.9, 7.1.2): composer update mautic/core.

Check which version you run with `composer show mautic/core`, and every affected package with `composer audit`.

## About this advisory

Summary A Server-Side Template Injection (SSTI) vulnerability exists in Mautic's theme engine. The platform renders uploaded Twig templates without a sandbox or strict function restrictions. Authenticated users with permissions to create or upload themes can abuse this to execute arbitrary code.

Impact An authenticated user with theme upload and creation privileges can bypass boundaries to execute arbitrary system commands on the hosting server (Remote Code Execution) or access restricted system files and configuration settings.

Patched Versions This security issue has been addressed in the following releases: 7.1.2 6.0.9 5.2.11



## Links

- [GHSA-9fx4-7cmj-47vg on GitHub](https://github.com/advisories/GHSA-9fx4-7cmj-47vg)
- [CVE-2026-9558 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-9558)
- [All Composer security advisories](https://buzzphp.com/security)
