WordPress 5.8.x < 5.8.17 Path Traversal

high Web App Scanning Plugin ID 115534

Synopsis

WordPress 5.8.x < 5.8.17 Path Traversal

Description

According to its self-reported version number, the version of WordPress installed on the remote host is missing a security update. It is, therefore, affected by a path traversal vulnerability.

An unauthenticated remote attacker can supply a double-encoded traversal sequence in the pagename query parameter, which get_page_template() interpolates into a page-{pagename}.php candidate without passing it through validate_file(). This allows a readable local .php file located outside the active theme directories to be included, and under specific theme and server conditions (an active theme with a top-level directory whose name starts with page-, and a reachable .php file such as pearcmd.php when register_argc_argv is enabled) it can be escalated to remote code execution.

Note that the scanner has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to WordPress version 5.8.17 or later.

See Also

https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp

https://wordpress.org/documentation/wordpress-version/version-7.1.2/

https://wordpress.org/news/2026/09/wordpress-7-1-2-release/

Plugin Details

Severity: High

ID: 115534

Type: Version Based

Published: 9/23/2026

Updated: 9/23/2026

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 6.9

Percentile: 96.54

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-87902

CVSS v3

Risk Factor: High

Base Score: 8.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS Score Source: CVE-2026-87902

Vulnerability Information

CPE: cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 9/21/2026

Reference Information

CVE: CVE-2026-87902