Description
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the view_page function in all versions up to, and including, 1.5.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). Successful exploitation requires an administrator to view or edit the poisoned form entry, at which point PHP's bracket parser reshapes the attacker-crafted JSON key to bypass the stored-path isset check and trigger deletion of the traversal-specified file.
Problem types
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version
Timeline
| 2026-05-28: | Vendor Notified |
| 2026-06-19: | Disclosed |
Credits
daroo
References
www.wordfence.com/...-0972-4aa9-ae04-f5f67afe15ef?source=cve
plugins.trac.wordpress.org/....5.1/includes/plugin-pages.php
plugins.trac.wordpress.org/...1.5.1/contact-form-entries.php
plugins.trac.wordpress.org/...1.5.1/contact-form-entries.php
plugins.trac.wordpress.org/...s/tags/1.5.1/includes/data.php
plugins.trac.wordpress.org/.../tags/1.5.1/templates/view.php
plugins.trac.wordpress.org/...t/3578556/contact-form-entries