Advisory

GHSA-9fx4-7cmj-47vg

Also known as: CVE-2026-9558

Summary

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

Details

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

For users on Mautic 4.x, this fix is available in:

Mautic strongly recommend upgrading to a patched version immediately.

Workarounds
There are no official workarounds. To mitigate this vulnerability without upgrading, restrict theme upload and creation permissions (core:themes:create) to only highly trusted administrators.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-07-02 19:48 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

mautic/core

Packagist · All systems

Affected

  • introduced 1.3.0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

mautic/core

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.2.11 (ecosystem)

Fixed versions

5.2.11

Fix

The export has no generic command for this ecosystem.

mautic/core

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.0.9 (ecosystem)

Fixed versions

6.0.9

Fix

The export has no generic command for this ecosystem.

mautic/core

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.1.2 (ecosystem)

Fixed versions

7.1.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences