← back
CVE-2018-12895

CVE-2018-12895

30Vexday Risk Score

Patch soon. It has a working public exploit.

ssvc Attendepss 63%
from disclosure to weapon0 days
Published on NVDJun 26
metasploitJun 26
exploitation probability
63%top 1% of all CVEs
observed exploitation
nono source reports it
WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the wp-admin/post.php thumb parameter, which is passed to the PHP unlink function and can delete the wp-config.php file. This is related to missing filename validation in the wp-includes/post.php wp_delete_attachment function. The attacker must have capabilities for files and posts that are normally available only to the Author, Editor, and Administrator roles. The attack methodology is to delete wp-config.php and then launch a new installation process to increase the attacker's privileges.
Affected products
n/a · n/a