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

Unlock with Pro - from £29/user/mo
CVE-2026-52889 Google Chronicle · YARA-L

Detect Formie Hidden Field Default Server-Side Template Injection (CVE-2026-52889) in Google Chronicle

Detects exploitation attempts against CVE-2026-52889, a Server-Side Template Injection (SSTI, CWE-1336) vulnerability in the Formie plugin (verbb/formie) for Craft CMS. The vulnerability exists in how Formie processes 'default value' expressions for Hidden form fields, allowing an unauthenticated or low-privileged attacker to inject Twig template syntax that is evaluated server-side, potentially leading to remote code execution. Affects verbb/formie < 3.1.27. Detection focuses on Twig/Craft template injection payload patterns in form submission requests, anomalous POST bodies to Formie submission endpoints, and resulting web shell / RCE indicators (process spawning from PHP-FPM/Craft, outbound connections, file writes to web root).

MITRE ATT&CK

Tactic
Initial Access Execution

YARA-L Detection Query

Google Chronicle (YARA-L)
yaral
rule formie_ssti_cve_2026_52889 {
  meta:
    author = "df00tech"
    description = "Detects SSTI exploitation attempts against Formie Hidden field defaults (CVE-2026-52889)"
    severity = "CRITICAL"
    cve = "CVE-2026-52889"
  events:
    $http.metadata.event_type = "NETWORK_HTTP"
    $http.network.http.method = "POST"
    (re.regex($http.target.url, `(?i)(actions/formie|/formie/)`))
    (re.regex($http.network.http.request_url_path_query_params, `(?i)(\{\{|_self\.env|system\(|proc_open\(|getFilter)`) or
     re.regex($http.network.http.response_body, `(?i)(root:x:|uid=\d+\(|SSTI)`))
  condition:
    $http
}
critical severity medium confidence

Chronicle YARA-L rule detecting HTTP POST requests to Formie form endpoints containing Twig SSTI syntax or subsequent command-execution evidence in the response, consistent with CVE-2026-52889.

Data Sources

Chronicle NETWORK_HTTP eventsWeb proxy / firewall logs ingested into Chronicle

Required Tables

NETWORK_HTTP

False Positives & Tuning

  • Approved red team or pentest traffic exercising the same SSTI payloads against a scoped target
  • Non-malicious template debugging traffic from developers using shared corporate proxies
  • Response bodies coincidentally matching regex patterns (e.g. documentation pages describing SSTI)

Other platforms for CVE-2026-52889


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 1Formie Hidden Field SSTI Payload Submission

    Expected signal: Web server access log entry recording a POST to /actions/formie/submissions/submit containing the Twig SSTI payload string in the request body.

  2. Test 2Formie SSTI to Command Execution Simulation

    Expected signal: EDR/auditd process creation events showing 'bash' spawned as a child of a process running under the www-data (or equivalent web server) user, executing 'id', 'whoami', and 'uname -a'.

  3. Test 3Formie Malicious Webshell Drop Simulation

    Expected signal: File integrity monitoring / EDR file-creation event for a new .php file written under the web root by the web server process user shortly after a Formie form submission.

Unlock playbooks & atomic tests with Pro

Get the full detection package for CVE-2026-52889 — 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