Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for CVE-2026-9558.

Upgrade to Pro
CVE-2026-9558 CrowdStrike LogScale · LogScale

Detect Mautic Server-Side Template Injection (SSTI) in Theme Templates in CrowdStrike LogScale

Detects exploitation of CVE-2026-9558, a critical (CVSS 9.9) Server-Side Template Injection vulnerability in Mautic's theme template engine (CWE-1336, Twig-based SSTI). An authenticated or in some deployments unauthenticated attacker can inject malicious Twig template syntax through theme customization, email/landing page builder, or theme upload/import functionality, achieving remote code execution on the underlying PHP host. Affects mautic/core versions >=1.3.0 <4.4.13, >=5.0.0 <5.2.11, >=6.0.0 <6.0.9, and >=7.0.0 <7.1.2. A public PoC/advisory exists (GHSA-9fx4-7cmj-47vg).

MITRE ATT&CK

Tactic
Initial Access Execution

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
#event_simpleName=ProcessRollup2
| ParentBaseFileName IN ("php-fpm", "php", "apache2", "httpd", "nginx")
| in(field=FileName, values=["sh", "bash", "whoami", "id", "curl", "wget", "python3", "perl", "nc"])
| join(field=[ComputerName], mode=inner, query={#event_simpleName=NetworkConnectIP4 | RemotePort=443 or RemotePort=80}, include=[RemoteAddressIP4])
| table([@timestamp, ComputerName, ParentBaseFileName, FileName, CommandLine, RemoteAddressIP4])
critical severity medium confidence

Detects anomalous child processes (shell, reconnaissance, or download utilities) spawned by the PHP/web server process on a host running Mautic, joined with outbound network activity, indicating post-exploitation activity following successful SSTI-to-RCE exploitation of CVE-2026-9558.

Data Sources

CrowdStrike Falcon process telemetryCrowdStrike Falcon network telemetry

Required Tables

ProcessRollup2NetworkConnectIP4

False Positives & Tuning

  • Legitimate PHP application features that shell out to system utilities (e.g., ImageMagick, ffmpeg wrappers) as part of normal Mautic operation
  • Scheduled maintenance scripts executed by the web server service account
  • Package manager or health-check tooling that spawns curl/wget from the web server context

Other platforms for CVE-2026-9558


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Twig SSTI probe against theme endpoint

    Expected signal: Web access log entry for POST /s/themes/edit/1 containing the literal string {{7*7}}; if vulnerable, the rendered theme output contains '49'.

  2. Test 2Twig-to-PHP function call injection

    Expected signal: Web log entry showing POST to /s/emails/edit/1 with __construct/getFilter/system( markers; process telemetry showing php-fpm spawning 'id' if the gadget chain succeeds in the lab sandbox.

  3. Test 3Post-exploitation shell spawn simulation from PHP-FPM

    Expected signal: Process creation events showing bash/id/whoami/curl spawned with parent process php-fpm running as www-data, plus an outbound connection to the test callback listener.

Unlock playbooks & atomic tests with Pro

Get the full detection package for CVE-2026-9558 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections