Overview

The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to an Arbitrary File Upload vulnerability. This vulnerability, tracked as CVE-2026-115867, has a CVSS score of 9.8, indicating a critical severity level. The vulnerability affects all versions of the plugin up to and including 1.5.5.

Understanding the Vulnerability / Threat

Root Cause Analysis

The root cause of this vulnerability is the missing file extension validation in the copy_files function of the plugin. This function accepts attacker-controlled stream wrapper URIs as the file source and derives the destination filename without restricting executable extensions. As a result, unauthenticated attackers can upload files that may be executable, leading to remote code execution.

This vulnerability belongs to the CWE-434 category, which involves Unrestricted File Upload.

Attack Surface & Vector

The vulnerability is located in the copy_files function of the plugin. An attacker can reach this vulnerability through a network-adjacent attack vector, as it is exploitable remotely without authentication. The preconditions needed are that the attacker must be able to send a crafted request to the vulnerable function.

Exploitation Mechanics — Scenario Walkthrough

Scenario: Compromising a WordPress Instance via Arbitrary File Upload

  1. Initial Position: The attacker has network access to the WordPress instance and can send HTTP requests to the plugin's copy_files function.
  2. Triggering the Flaw: The attacker crafts an HTTP request to the copy_files function with a malicious file upload that includes a stream wrapper URI. The file upload is designed to bypass file extension validation, allowing for the upload of executable files.
  3. What Breaks: The security boundary fails because the plugin does not properly validate the file extension of the uploaded file. This allows the attacker to upload a file with an executable extension (e.g., .php), which can be executed by the server.
  4. Attacker's Prize: The attacker gains the ability to execute arbitrary code on the server, potentially leading to remote code execution, data exfiltration, or lateral movement within the network.

Real-World Impact

The impact of this vulnerability can be severe. An attacker can use it to upload malicious files, leading to:

  • Remote code execution
  • Data theft or exfiltration
  • Lateral movement within the network
  • Deployment of ransomware or other types of malware

Detection & Defense

Immediate Mitigations

To mitigate this vulnerability, it is recommended to:

  • Upgrade the Database for Contact Form 7, WPforms, Elementor forms plugin to a version higher than 1.5.5.

Detection Strategies

Defenders can detect exploitation attempts by:

  • Monitoring for unusual file uploads or modifications in the plugin's upload directory.
  • Implementing SIEM rules to detect and alert on suspicious traffic to the copy_files function.

Long-Term Hardening

To prevent this class of vulnerability, consider:

  • Implementing strict file validation and sanitization for all file uploads.
  • Restricting file uploads to only allow specific, non-executable file types.
  • Regularly updating and patching plugins and software.

Key Takeaways

  • The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to an Arbitrary File Upload vulnerability.
  • The vulnerability allows unauthenticated attackers to upload potentially executable files, leading to remote code execution.
  • Missing file extension validation in the copy_files function is the root cause of the vulnerability.
  • Immediate mitigation involves upgrading the plugin to a version higher than 1.5.5.

Sources