CVE-2026-115867: Database for Contact Form 7, WPforms, Elementor forms <= 1.5.5 - Unauthenticated Arbitrary File Upload via Ninja Forms Submission
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 1.5.5 via the copyfiles function. This is due to missing file extension validation in the copyfiles function, which accepts attacker-controlled stream wrapper URIs as the file source and derives the destination filename without restricting executable extensions. This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible. The plugin places an .htaccess file in its uploads directory to block PHP execution, but this mitigation is ineffective on Nginx, LiteSpeed in certain configurations, and Apache servers with AllowOverride None, and the file is not restored if deleted.
Affected Software
Event History
Frequently Asked Questions
Which deployments are most exposed to remote code execution?
Deployments running an affected version on Nginx are exposed because the plugin's .htaccess-based PHP execution block is ineffective there. LiteSpeed deployments in certain configurations and Apache deployments configured with AllowOverride None are also exposed to this mitigation failure.
Does an attacker need an account or user interaction to exploit this issue?
No. The vulnerability is exploitable by an unauthenticated attacker and does not require user interaction.
Are installations protected by the plugin's .htaccess file safe?
The plugin attempts to block PHP execution in its uploads directory with an .htaccess file, but this does not protect Nginx and may not protect certain LiteSpeed or Apache configurations. Protection can also be lost if the .htaccess file is deleted, because the plugin does not restore it.
What condition allows the file upload to become code execution?
The affected copy_files function accepts attacker-controlled stream-wrapper URIs and does not restrict executable filename extensions. If an uploaded executable file can be executed by the web server from the plugin upload directory, remote code execution is possible.