Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2018-12895

8.8 · HIGH
Published Jun 26, 2018 wordpress CWE-22 EPSS 62.16% (99th pctl)

Overview

CVE-2018-12895 is a high-severity vulnerability affecting wordpress wordpress. It was published on June 26, 2018 and has a CVSS 3.1 base score of 8.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

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.

Remediation

Check the references section for vendor advisories and patches from wordpress. Update wordpress to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
wordpress wordpress >= 0, < 4.9.7 Affected

Frequently Asked Questions

What is CVE-2018-12895?

CVE-2018-12895 is a high-severity vulnerability affecting wordpress wordpress. It was published on June 26, 2018 and has a CVSS 3.1 base score of 8.8 (HIGH).

How severe is CVE-2018-12895?

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2018-12895?

Check the references section for vendor advisories and patches from wordpress. Update wordpress to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2018-12895?

CyberStrike's AI-powered security agents can automatically detect CVE-2018-12895 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.