CVE-2018-12895: 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 del

high Affects WordPress core. Feed 2026.10.29.1, updated 2026-10-28; published ; advisory modified .

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 del

Package
WordPress core WordPress
Affected versions
<4.9.7
Fixed in
4.9.7
Severity
high  CVSS 8.8
Exploitation
not on CISA KEV · EPSS 62% (99.2th percentile)
Published
2018-06-26
Source
nvd

References

CWE-22
NVD recordWordPress core advisories

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# one-time install
pip install phpwarden

# then
phpwarden wordpress /var/www/html

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked

Related advisories