Vulnerability Description
The WooCommerce Purchase Orders plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the delete_file() function in all versions up to, and including, 1.0.2. This makes it possible for authenticated attackers, with Subscriber-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).
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/wc-purchase-orders/trunk/includes/cla
- https://plugins.trac.wordpress.org/browser/wc-purchase-orders/trunk/includes/cla
- https://plugins.trac.wordpress.org/changeset/3356360/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/05a27a34-b324-4968-937
FAQ
What is CVE-2025-5391?
CVE-2025-5391 is a vulnerability with a CVSS score of 8.1 (HIGH). The WooCommerce Purchase Orders plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the delete_file() function in all versions up to, and includin...
How severe is CVE-2025-5391?
CVE-2025-5391 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-5391?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.