{"id":64138,"date":"2025-08-18T06:45:02","date_gmt":"2025-08-18T06:45:02","guid":{"rendered":""},"modified":"2025-09-04T23:55:57","modified_gmt":"2025-09-05T05:55:57","slug":"cve-2025-5391-arbitrary-file-deletion-vulnerability-in-woocommerce-purchase-orders-plugin-for-wordpress","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-5391-arbitrary-file-deletion-vulnerability-in-woocommerce-purchase-orders-plugin-for-wordpress\/","title":{"rendered":"<strong>CVE-2025-5391: Arbitrary File Deletion Vulnerability in WooCommerce Purchase Orders Plugin for WordPress<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>CVE-2025-5391 is a critical vulnerability found in the WooCommerce Purchase Orders plugin for WordPress, a widely-used e-commerce solution for online businesses. This vulnerability is particularly concerning due to its potential to lead to arbitrary file deletion and eventually, remote code execution, making it a significant threat to WordPress users employing the WooCommerce Purchase Orders plugin. Any breach of this nature can have potential catastrophic consequences for businesses, including <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-21432-memory-corruption-vulnerability-resulting-in-potential-system-compromise-or-data-leakage\/\"  data-wpil-monitor-id=\"76599\">system compromise and data<\/a> leakage.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-5391<br \/>\nSeverity: High (8.1 CVSS Score)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low (Subscriber-level access)<br \/>\nUser Interaction: Required<br \/>\nImpact: An exploit can <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32451-memory-corruption-vulnerability-in-foxit-reader-leading-to-arbitrary-code-execution\/\"  data-wpil-monitor-id=\"74417\">lead to arbitrary<\/a> file deletion, potentially resulting in remote code execution and system compromise or data leakage.<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-3731143285\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>WooCommerce Purchase Orders <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7384-php-object-injection-vulnerability-in-wordpress-plugin-leads-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"79033\">Plugin for WordPress<\/a> | Up to and including 1.0.2<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The vulnerability lies in the delete_file() function of the WooCommerce Purchase Orders plugin, which lacks sufficient <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54653-path-traversal-vulnerability-in-virtualization-file-module\/\"  data-wpil-monitor-id=\"78857\">file path<\/a> validation. An attacker with Subscriber-level access or above can abuse this function to delete <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-52239-arbitrary-file-upload-vulnerability-in-zkeacms-v4-1\/\"  data-wpil-monitor-id=\"74539\">arbitrary files<\/a> on the server. The gravest threat arises when critical files like &#8216;wp-config.php&#8217; are deleted which can then <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-47168-use-after-free-vulnerability-in-microsoft-office-word-allowing-unauthorized-code-execution\/\"  data-wpil-monitor-id=\"73152\">allow for remote code<\/a> execution. This essentially hands over control of the server to the attacker, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-27055-memory-corruption-leads-to-potential-system-compromise-during-image-encoding\/\"  data-wpil-monitor-id=\"74277\">compromising the system and potentially leading<\/a> to data leakage.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2244027725\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>Given the vulnerability, an <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-9408-server-side-request-forgery-attack-in-eclipse-glassfish\/\"  data-wpil-monitor-id=\"77255\">attacker could send a malicious request to the server<\/a> using the delete_file() function. The following is a conceptual example of how such a request might look:<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/wp-admin\/admin-ajax.php?action=delete_file HTTP\/1.1\nHost: target.example.com\nContent-Type: application\/x-www-form-urlencoded\nfile_path=..\/..\/..\/wp-config.php<\/code><\/pre>\n<p>In this example, the attacker makes a POST request to the &#8216;delete_file&#8217; action of the &#8216;admin-ajax.php&#8217; file, specifying the &#8216;file_path&#8217; parameter as &#8216;wp-config.php&#8217;, a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-33075-a-critical-windows-installer-vulnerability-that-leads-to-privilege-elevation\/\"  data-wpil-monitor-id=\"72419\">critical file in the WordPress installation<\/a>. Due to insufficient file path validation, the server processes the request and deletes the specified file, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-30327-integer-overflow-vulnerability-in-incopy-leading-to-potential-arbitrary-code-execution\/\"  data-wpil-monitor-id=\"73589\">potentially leading to remote code<\/a> execution.<\/p>\n<p><strong>Mitigation Guidance<\/strong><\/p>\n<p>Given the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-53546-high-severity-vulnerability-in-folo-s-github-workflow\/\"  data-wpil-monitor-id=\"73419\">severity of this vulnerability<\/a>, immediate mitigation measures should be taken. Users are advised to apply the vendor patch as soon as it is available. Until then, a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can be used to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-20217-denial-of-service-vulnerability-in-snort-3-detection-engine-of-cisco-secure-firewall-threat-defense-software\/\"  data-wpil-monitor-id=\"76974\">detect and prevent attempts to exploit this vulnerability<\/a>. Regularly updating and patching software, along with implementing good cybersecurity practices such as limiting user privileges and monitoring system logs, can also help in mitigating the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54689-high-risk-php-remote-file-inclusion-vulnerability-in-urna\/\"  data-wpil-monitor-id=\"76598\">risk associated with such vulnerabilities<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview CVE-2025-5391 is a critical vulnerability found in the WooCommerce Purchase Orders plugin for WordPress, a widely-used e-commerce solution for online businesses. This vulnerability is particularly concerning due to its potential to lead to arbitrary file deletion and eventually, remote code execution, making it a significant threat to WordPress users employing the WooCommerce Purchase Orders [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[80],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-64138","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-rce"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/64138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=64138"}],"version-history":[{"count":12,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/64138\/revisions"}],"predecessor-version":[{"id":71436,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/64138\/revisions\/71436"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=64138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=64138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=64138"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=64138"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=64138"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=64138"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=64138"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=64138"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=64138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}