CVE-2018-12895
high-risk
Published 2018-06-26
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.
Do I need to act?
!
89.0% chance of exploitation in next 30 days
EPSS score — higher than 11% of all CVEs
-
Not on CISA KEV list
No confirmed active exploitation reported to CISA
?
Patch status unknown
Check vendor advisories for fix availability and mitigation guidance
8
CVSS 8.8/10
High
NETWORK
/ LOW complexity
Affected Products (3)
References (12)
Third Party Advisory
http://www.securityfocus.com/bid/104569
Third Party Advisory
https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/
Third Party Advisory
https://wpvulndb.com/vulnerabilities/9100
Third Party Advisory
https://www.debian.org/security/2018/dsa-4250
Third Party Advisory
http://www.securityfocus.com/bid/104569
Third Party Advisory
https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/
Third Party Advisory
https://wpvulndb.com/vulnerabilities/9100
Third Party Advisory
https://www.debian.org/security/2018/dsa-4250
59
/ 100
high-risk
Severity
30/34 · Critical
Exploitability
20/34 · Moderate
Exposure
9/34 · Low