LWS Cleaner <= 2.4.1.3 - Authenticated (Administrator+) Arbitrary File Deletion via 'lws_cl_delete_file'

2025-09-11 00:00
Jonas Benjamin Friedli

Strategic Overview

Status
Patched in 2.4.2
Affected PluginLWS Cleaner
Affected Version<= 2.4.1.3
CVSS7.2High
CVECVE-2025-8575
View all LWS Cleaner vulnerabilities

Vulnerability Overview

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).

Technical Analysis

REMEDIATION: Update to version 2.4.2, or a newer patched version --- IDENTIFIER: CWE-36 (Absolute Path Traversal) The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as /abs/path that can resolve to a location that is outside of that directory.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C