AI Engine <= 3.8.4 - Authenticated (Subscriber+) Limited Media File Deletion via 'metadata' Parameter
Impact
The AI Engine – The Chatbot, AI Framework & MCP for WordPress plugin for WordPress is vulnerable to limited media file deletion due to insufficient file path validation in the upload_file function in all versions up to, and including, 3.8.4 This makes it possible for authenticated attackers, with subscriber-level access and above, to delete arbitrary media files on the server. This requires the administrator to have enabled the Public API option, and exploitation depends on the hourly cleanup_files task running after the malicious upload.
Source excerpt · WordfenceThis requires the administrator to have enabled the Public API option, and exploitation depends on the hourly cleanup_files task running after the malicious upload.
Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
tigroumeow · AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 0 through 3.8.4 (inclusive) | affected |
Original source description
The AI Engine – The Chatbot, AI Framework & MCP for WordPress plugin for WordPress is vulnerable to limited media file deletion due to insufficient file path validation in the upload_file function in all versions up to, and including, 3.8.4 This makes it possible for authenticated attackers, with subscriber-level access and above, to delete arbitrary media files on the server. This requires the administrator to have enabled the Public API option, and exploitation depends on the hourly cleanup_files task running after the malicious upload.
References
- Security advisory www.wordfence.com/threat-intel/vulnerabilities/id/d4f8607c-711e-4d0e-8379-49346033a837
- Source reference plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.3/classes/modules/files.php
- Source reference plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.3/classes/modules/files.php
- Source reference plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.3/classes/modules/files.php
- Source reference plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.3/classes/api.php
- Source reference plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.3/classes/api.php
- Patch plugins.trac.wordpress.org/changeset