VYPR
Critical severity9.9NVD Advisory· Published May 29, 2026· Updated May 29, 2026

CVE-2026-9558

CVE-2026-9558

Description

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 on the hosting server (Remote Code Execution) or access restricted system files and configuration settings.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Authenticated Mautic users with theme privileges can inject malicious Twig templates, leading to remote code execution.

Vulnerability

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, allowing arbitrary native Twig functions to be called [1]. This affects all versions prior to 7.1.2, 6.0.9, and 5.2.11, as well as 4.x before 4.4.20 via ELTS [1].

Exploitation

An attacker must be authenticated and have permissions to create or upload themes (the core:themes:create capability) [1]. By uploading a malicious Twig template file, the attacker can inject template expressions that invoke arbitrary PHP functions or execute shell commands through Twig's built-in function and filter constructs, as the theme engine processes the template without sandboxing [1].

Impact

Successful exploitation allows the attacker to achieve Remote Code Execution (RCE) on the hosting server, or to read restricted system files and configuration settings [1]. This can lead to full server compromise, data exfiltration, and lateral movement within the infrastructure.

Mitigation

The vulnerability is fixed in Mautic versions 7.1.2, 6.0.9, 5.2.11, and for 4.x in 4.4.20 via ELTS [1]. No official workarounds exist; as a mitigation, administrators should restrict theme upload and creation permissions to only highly trusted users until upgrading is possible [1].

AI Insight generated on May 29, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • Mautic/Mauticinferred2 versions
    (expand)+ 1 more
    • (no CPE)
    • (no CPE)

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

1

News mentions

0

No linked articles in our index yet.