Skip to main content
← All vulnerabilities
CVE-2018-12895

WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the wp-admin/post.php thumb param

Published
Last modified
published
Not listed in CISA KEV
1 Metasploit module, 1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 8

blog.ripstech.com

securityfocus.com

debian.org

wpvulndb.com

lists.debian.org

packetstormsecurity.com

GitHub · rapid7/metasploit-framework

GitHub · bloom-ux/cve-2018-12895-hotfix