# WordPress 7.0.2 Path Traversal Can Enable Local PHP File Inclusion

DevFeed: [WordPress 7.0.2 Path Traversal Can Enable Local PHP File Inclusion](<https://devfeed.tech/articles/webapps-wordpress-7-0-2-path-travesal-63276.md>)

Original publisher: [Read original article](<https://www.exploit-db.com/exploits/52690>)

Author: Robert Ressl

Published: 2026-10-01T00:00:00Z

Content type: article

Language: en

Sources: [Exploit-DB.com RSS Feed](<https://devfeed.tech/sources/exploit-db-com-rss-feed.md>)

Topics: [CVE-2026-86060](<https://devfeed.tech/topics/cve-2026-86060.md>), [XSS](<https://devfeed.tech/topics/xss.md>), [WordPress](<https://devfeed.tech/topics/wordpress.md>)

Tags: [cve-2026-87902](<https://devfeed.tech/tags/cve-2026-87902.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [webapps](<https://devfeed.tech/tags/webapps.md>), [wordpress](<https://devfeed.tech/tags/wordpress.md>)

## AI overview

The document presents a proof of concept for CVE-2026-87902, an unauthenticated path traversal in WordPress page-template resolution that can include a local PHP file. It describes a two-request chain that can execute PHP under the web server account when environment-specific conditions are met, including PEAR availability, register_argc_argv enabled for the web SAPI, and writable output storage. The document says the defect was patched in WordPress 7.1.2 and 7.0.6, with backports to branches down to 4.7.37.

## Source excerpt

WordPress 7.0.2 - Path Travesal