AI Engine <= 2.5.0 - Authenticated (Admin+) Remote Code Execution

7.2
Improper Control of Generation of Code ('Code Injection')
CVE CVE-2024-6451
CVSS 7.2 (High)
Publicly Published July 29, 2024
Last Updated August 28, 2024
Researcher Karolis Narvilas

Description

The AI Engine plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.5.0 via the /wp-json/mwai/v1/settings/update REST API endpoint. This is due to the plugin not properly validating a log path file extension allowing a user to set the log extension as .php making the file executable. This makes it possible for authenticated attackers, with administrator-level access and above, to execute code on the server.

References

Share

Vulnerability Details for AI Engine

Software Type Plugin
Software Slug ai-engine (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.5.1, or a newer patched version
Affected Version
  • <= 2.5.0
Patched Version
  • 2.5.1

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation