Arbitrary File Upload Vulnerability in Contact Form 7 and WPForms for WordPress
CVE-2026-115867

9.8CRITICAL

What is CVE-2026-115867?

The Contact Form 7, WPForms, and Elementor forms plugin for WordPress has a vulnerability that allows for arbitrary file uploads due to inadequate validation of file extensions in the copy_files function. This vulnerability permits unauthenticated users to upload potentially executable files, enabling the risk of remote code execution. Although the plugin attempts to prevent PHP execution by placing an .htaccess file in the uploads directory, this measure does not work effectively in various server environments like Nginx, LiteSpeed under specific configurations, and Apache servers with the AllowOverride directive set to None. Additionally, if the .htaccess file is deleted, there are no automated mechanisms in place to restore it.

Affected Version(s)

Database for Contact Form 7, WPforms, Elementor forms 0 <= 1.5.5

References

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

daroo
.