Exploit database

Vulnerability

CVE-2026-4257

Contact Form by Supsystic <= 1.7.36 - Unauthenticated Server-Side Template Injection via Prefill Functionality

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · Wordfence

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

4 sources
Supsystic Contact Form Wordpress Plugin SSTI RCE
MSF-multi--http--wp_plugin_supsystic_contact_form_rceMetasploitLinux,Unix,Windows / remote

This module performs SSTI achieving RCE in webpages containing the Contact Form Wordpress plugin by Supsystic in versions 1.7.36 and before.

2026-03-30wp_plugin_supsystic_contact_form_rce.rb
dann3xplo1t/cve-2026-4257
GH-42e9e3347294c32b44a84eb360b3de08GitHubUnofficial GitHub source

CVE-2026-4257 - Contact Form by Supsystic <= 1.7.36 # SSTI to RCE

2026-07-091 file · 1 stars
bootstrapbool/cve-2026-4257
GH-6a472a0ef481821a281d35534405529dGitHubUnofficial GitHub source

bootstrapbool/cve-2026-4257 source repository

2026-04-056 files · 0 stars