Directory Traversal Affecting wordpress package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
62.16% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-WORDPRESS-451852
  • published26 Jun 2018
  • disclosed26 Jun 2018

Introduced: 26 Jun 2018

CVE-2018-12895  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:18.04 wordpress.

NVD Description

Note: Versions mentioned in the description apply only to the upstream wordpress package and not the wordpress package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1