Description
The Redirection for Contact Form 7 plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the delete_associated_files function in all versions up to, and including, 3.2.4. 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).
Problem types
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
*
Timeline
2025-07-05: | Discovered |
2025-08-19: | Disclosed |
Credits
Nguyen Tan Phat
References
www.wordfence.com/...-25ab-430d-88ef-c4d09d23baa7?source=cve
plugins.trac.wordpress.org/...es/class-wpcf7r-save-files.php