CVE-2018-12895 in the critical feed json
WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the wp-admin/post.php thumb para…
published 8y ago modified 4mo ago also EUVD-2018-4848
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 62.2%
- EPSS 62.2% chance of exploitation in 30 days, percentile 99.1%
- public exploits
- 1
- Metasploit
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.
Patch / fix
- wordpress wordpress 4.9.7
- wordpress Debian 14, Debian 13, Debian 12 4.9.7+dfsg1-1
debian advisories DEBIAN-CVE-2018-12895
Is CVE-2018-12895 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-12895 updated cvss 7.2
wordpress: Author users can execute arbitrary code by leveraging directory traversal on the wp-admin/post.php thumb parameter
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit auxiliary/scanner/http/wp_arbitrary_file_deletion)
- Published
Exploit prediction
62.16% chance of exploitation in the next 30 days, higher than 99.1% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit auxiliary/scanner/http/wp_arbitrary_file_deletion Wordpress Arbitrary File Deletion metasploit auxiliary, normal rank, 2018-06-26
- packetstormsecurity.com http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- Technology feeds
References
-
packetstormsecurity.com
/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html
exploit, third-party-advisory, vdb-entry
-
debian.org
/security/2018/dsa-4250
vendor-advisory, third-party-advisory
-
blog.ripstech.com
/2018/wordpress-file-delete-to-code-execution/
third-party-advisory
-
securityfocus.com
/bid/104569
vdb-entry, third-party-advisory
-
wpvulndb.com
/vulnerabilities/9100
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/07/msg00046.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2018-12895
- NVD CVE-2018-12895
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.