BuzzPHP
LightDarkSystem

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

Critical severity. Published 2 July 2026. Update mautic/core to the fixed version of your branch (5.2.11, 6.0.9, 7.1.2): composer update mautic/core.

Which versions are affected?

PackageAffected versionsFixed in
mautic/core (opens in a new tab)>= 1.3.0, < 4.4.13 | >= 5.0.0, < 5.2.11 | >= 6.0.0, < 6.0.9 | >= 7.0.0, < 7.1.25.2.11, 6.0.9, 7.1.2

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show mautic/core
composer audit

Advisory details

SeverityCriticalCVSS 9.9
Published
Updated
CVECVE-2026-9558 (opens in a new tab)
GHSAGHSA-9fx4-7cmj-47vg (opens in a new tab)
WeaknessCWE-1336

What the advisory says

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

Source: GHSA-9fx4-7cmj-47vg (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories