ZeroHour

CVE-2026-4257

large

Unauthenticated SSTI-to-RCE in Contact Form by Supsystic WordPress plugin

CVSS 3.1
9.8 critical
EPSS
41%p99
Published
()
Modified
AI analysis

The Contact Form by Supsystic plugin for WordPress (all versions up to and including 1.7.36) contains an unauthenticated server-side template injection flaw (CWE-94) that leads to remote code execution. The plugin processes form field 'cfsPreFill' prefill values taken from GET parameters using the Twig engine loaded via Twig_Loader_String without any sandboxing, so arbitrary Twig expressions submitted in GET parameters are evaluated server-side. By chaining Twig's registerUndefinedFilterCallback() mechanism to register arbitrary PHP callbacks, an attacker can invoke arbitrary PHP functions and execute OS commands on the host; the network vector requires no privileges and no user interaction, earning a critical CVSS 9.8 score with high impact on confidentiality, integrity, and availability. Any WordPress site running the plugin at version 1.7.36 or earlier is potentially affected. No public proof-of-concept or confirmed in-the-wild exploitation is known, but the 41.5% EPSS score (99th percentile) indicates a high probability of exploitation attempts within the next 30 days; the CVE was assigned by Wordfence.

What to do: Update Contact Form by Supsystic to the latest patched release (any version newer than 1.7.36; the data does not name the specific fixed version). Until patching, consider deactivating or removing the plugin, or apply WAF/virtual-patch rules that block requests carrying Twig template syntax in cfsPreFill-related GET parameters. Review web-server access logs for unusual GET parameters submitted to form endpoints and watch for emerging exploits or KEV listing given the elevated EPSS probability.

Affected
Supsystic Contact Form by Supsystic (WordPress plugin)all versions up to and including 1.7.36
Estimated exposure
large~60,000 sites (order of tens of thousands of active installs) — Estimate based on the plugin's publicly listed WordPress.org active-install count, which is on the order of tens of thousands (~60k); the CVE data provided included no install figures, and not every install is necessarily exploitable, so…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

The Contact Form by Supsystic plugin for WordPress is vulnerable to Server-Side Template Injection (SSTI) leading to Remote Code Execution (RCE) in all versions up to, and including, 1.7.36. This is due to the plugin using the Twig `Twig_Loader_String` template engine without sandboxing, combined with the `cfsPreFill` prefill functionality that allows unauthenticated users to inject arbitrary Twig expressions into form field values via GET parameters. This makes it possible for unauthenticated attackers to execute arbitrary PHP functions and OS commands on the server by leveraging Twig's `registerUndefinedFilterCallback()` method to register arbitrary PHP callbacks.

Ecosystems
WordPress
Weakness
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.