Description
The LWS Cleaner plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the 'lws_cl_delete_file' function in all versions up to, and including, 2.4.1.3. This makes it possible for authenticated attackers, with Administrator-level access and above, 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-36 Absolute Path Traversal
Product status
* (semver)
Timeline
| 2025-09-11: | Disclosed |
Credits
Jonas Benjamin Friedli
References
www.wordfence.com/...-7f20-4cfe-a7d0-38168f49b6d9?source=cve
plugins.trac.wordpress.org/...-cleaner/trunk/lws-cleaner.php
plugins.trac.wordpress.org/changeset/3359598/