WooCommerce PDF Vouchers <= 4.9.4 - Unauthenticated Arbitrary File Deletion
Strategic Overview
- Status
- Patched in 4.9.5
- Affected Plugin
- WooCommerce - PDF Vouchers
- Affected Version
<= 4.9.4- CVSS
- 9.1Critical
- Weakness type
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CVE
CVE-2024-39651
At a glance
CVE-2024-39651 is a critical-severity Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in the WooCommerce - PDF Vouchers WordPress plugin, affecting versions <= 4.9.4. It carries a CVSS score of 9.1 (reachable over the network; low attack complexity; high integrity, availability impact). Exploitation requires no authentication. The issue is fixed in version 4.9.5; sites on affected versions should update now. Disclosed August 2024, reported by Dave Jong.
Vulnerability Overview
The WooCommerce - PDF Vouchers plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in a function in all versions up to, and including, 4.9.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).
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site, and no interaction from a victim user. A successful exploit has high impact on integrity, availability.
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Reaching this weakness in WooCommerce - PDF Vouchers <= 4.9.4 takes no account at all. Path traversal happens when user-controlled text is used to build a filesystem path without being constrained to an intended directory, so sequences like ../ walk the resolved path somewhere else.
Depending on the operation, it means reading files outside the intended folder — wp-config.php being the usual target — or writing to and deleting paths the web server can touch. For WooCommerce - PDF Vouchers the fix is 4.9.5: builds <= 4.9.4 are affected, anything from 4.9.5 onward is not.
Remediation
Update to version 4.9.5, or a newer patched version
How does WordSec protect against this?
Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: WooCommerce - PDF Vouchers 4.9.5 closes this, and updating the plugin is the step that ends it.
- Firewall
- Login Security
- Alerts
External References
Related records
Other vulnerabilities in WooCommerce - PDF Vouchers
- 9.8CVE-2024-54383: WooCommerce PDF Vouchers < 4.9.9 Authentication Bypass
CVE-2024-54383 - 7.3CVE-2024-7027: WooCommerce - PDF Vouchers Authentication Bypass
CVE-2024-7027 - 6.5CVE-2024-39650: WooCommerce PDF Vouchers Missing Authorization
CVE-2024-39650 - 6.1CVE-2024-56265: WooCommerce PDF Vouchers < 4.9.9 Reflected XSS
CVE-2024-56265 - 6.1CVE-2024-39652: WooCommerce PDF Vouchers <= 4.9.4 Reflected XSS
CVE-2024-39652
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C