SecurityContext

CVE-2018-12895: WordPress - Path Traversal

  • Cve: CVE-2018-12895
  • Name: WordPress - Path Traversal
  • 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.
  • Impact: Attackers can delete wp-config.php and potentially escalate privileges or compromise the site.
  • Remediation: Update to the latest version of WordPress where this issue is fixed.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write
  • Requirement type: logged_in
  • Requirements: Attacker needs author capabilities
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.62162
  • Epss percentile: 0.99201
  • Assignee: [email protected]
  • Published at: 2018-06-26T20:29:00Z
  • Age in days: 3073
  • Modified at: 2026-06-17T01:38:32Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 6
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-12895
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Hackerone

  • Reports: 13
  • Rank: 51

Public exploits

UrlSourceAdded date
http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.htmlnvd2018-06-26
https://github.com/bloom-ux/cve-2018-12895-hotfixpoc-in-github2018-07-05

References

Same in every row:

  • Source: nvd
UrlTags
http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.htmlExploit, Third Party Advisory, VDB Entry
http://www.securityfocus.com/bid/104569Third Party Advisory, VDB Entry
https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00046.htmlMailing List, Third Party Advisory
https://wpvulndb.com/vulnerabilities/9100Third Party Advisory
https://www.debian.org/security/2018/dsa-4250Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
wordpress:wordpress< 4.9.7nonvd/v1/products/wordpress/wordpress
debian:debian_linux= 9.0, = 8.0nonvd/v1/products/debian/debian_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2018-06-26
  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 13
  • Exposed hosts: 4706702
  • Checked, none or zero: known exploited, known exploited by, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since