Skip to content
File upload Write-up Beginner

CVE-2025–7847 — Arbitrary File Upload in AI Engine WordP

The AI Engine WordPress plugin allowed any logged-in Subscriber to upload arbitrary files, including PHP scripts, when the Public API setting was enabled. An attacker could then access the uploaded file to execute server-side code, leading to remote code execution and full site compromise.

Sector Cyber Security Follow

Published on medium.com

On July 30, 2025, a critical vulnerability (CVE-2025–7847) in the widely used AI Engine WordPress plugin (v2.9.3–2.9.4) came to light. The flaw allows any logged-in user with Subscriber privileges to upload arbitrary files, potentially leading to full site compromise.

Sector Cyber Security, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The plugin's file upload endpoint lacked file-type validation and relied on a permission check that returned true for any logged-in user when the Public API was enabled.

Impact

An attacker could achieve remote code execution, leading to site defacement and data theft, but only when the Public API setting is enabled.

What the attacker needed

A free Subscriber account; Public API setting enabled

The fix

The vulnerability was fixed in version 2.9.5 by adding file-type validation to block executable uploads and restricting accepted MIME types to images and text.

How it was found

  1. Create a WordPress account with Subscriber role.
  2. Enable the AI Engine Public API setting.
  3. Send a POST request with a PHP backdoor file to the vulnerable REST API endpoint.
  4. The file is saved to /wp-content/uploads/ without restrictions.
  5. Access the uploaded file via browser to execute server-side code.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A WordPress plugin let any logged-in user, even with the lowest permissions, upload any file type to the website. Because the plugin did not check what kind of file was being uploaded, someone could upload a malicious script that runs on the server, giving them control over the site.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More by Sector Cyber Security

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.