GitHub Advisoryadvisory · Packagist

GHSA-9fx4-7cmj-47vg Mautic has Server-Side Template Injection (SSTI) in Theme Templates

CRITICAL Published 2026-07-02 Modified 2026-07-02 Official page ↗
Aliases
CVE-2026-9558
Ecosystem
Packagist
Packages
mautic/core
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-1336
Reviewed
2026-07-02

Affected packages

• Packagist mautic/core: < 4.4.13 (no fix yet) • Packagist mautic/core: >= 5.0.0, < 5.2.11 → fixed in 5.2.11 • Packagist mautic/core: >= 6.0.0, < 6.0.9 → fixed in 6.0.9 • Packagist mautic/core: >= 7.0.0, < 7.1.2 → fixed in 7.1.2

Description

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: • 4.4.20 via ELTS 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.

Related

Alias · CVE (1)

  • CVE-2026-9558 A Server-Side Template Injection (SSTI) vulnerability exists in Mautic's theme engine. vulnerability

Weakness · CWE (1)

  • CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine weakness

References