WordPress 4.7.x < 4.7.37 / 4.8.x < 4.8.32 / 4.9.x < 4.9.33 / 5.0.x < 5.0.29 / 5.1.x < 5.1.26 / 5.2.x < 5.2.28 / 5.3.x < 5.3.25 / 5.4.x < 5.4.23 / 5.5.x < 5.5.22 / 5.6.x < 5.6.21 / 5.7.x < 5.7.19 / 5.8.x < 5.8.17 / 5.9.x < 5.9.18 / 6.0.x < 6.0.16 / 6.1.x < 6.1.14 / 6.2.x < 6.2.13 / 6.3.x < 6.3.12 / 6.4.x < 6.4.12 / 6.5.x < 6.5.12 / 6.6.x < 6.6.9 / 6.7.x < 6.7.9 / 6.8.x < 6.8.10 / 6.9.x < 6.9.9 / 7.0.x < 7.0.6 / 7.1.x < 7.1.2 Page Template Path Traversal

critical Nessus Plugin ID 350092

Synopsis

A PHP application running on the remote web server is affected by a path traversal vulnerability.

Description

The version of WordPress installed on the remote host is 4.7.x prior to 4.7.37, or 4.8.x prior to 4.8.32, or 4.9.x prior to 4.9.33, or 5.0.x prior to 5.0.29, or 5.1.x prior to 5.1.26, or 5.2.x prior to 5.2.28, or 5.3.x prior to 5.3.25, or 5.4.x prior to 5.4.23, or 5.5.x prior to 5.5.22, or 5.6.x prior to 5.6.21, or 5.7.x prior to 5.7.19, or 5.8.x prior to 5.8.17, or 5.9.x prior to 5.9.18, or 6.0.x prior to 6.0.16, or 6.1.x prior to 6.1.14, or 6.2.x prior to 6.2.13, or 6.3.x prior to 6.3.12, or 6.4.x prior to 6.4.12, or 6.5.x prior to 6.5.12, or 6.6.x prior to 6.6.9, or 6.7.x prior to 6.7.9, or 6.8.x prior to 6.8.10, or 6.9.x prior to 6.9.9, or 7.0.x prior to 7.0.6, or 7.1.x prior to 7.1.2. It is, therefore, affected by a vulnerability.

- An unauthenticated attacker can make get_page_template() page-template resolution include a chosen readable local .php file outside the active theme directories. If relevant pre-conditions for both the server and the active theme are met, this can lead to RCE. (CVE-2026-87902)

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

Solution

Upgrade to WordPress version 4.7.37 / 4.8.32 / 4.9.33 / 5.0.29 / 5.1.26 / 5.2.28 / 5.3.25 / 5.4.23 / 5.5.22 / 5.6.21 / 5.7.19 / 5.8.17 / 5.9.18 / 6.0.16 / 6.1.14 / 6.2.13 / 6.3.12 / 6.4.12 / 6.5.12 / 6.6.9 / 6.7.9 / 6.8.10 / 6.9.9 / 7.0.6 / 7.1.2 or later.

See Also

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

http://www.nessus.org/u?aa8c545d

Plugin Details

Severity: Critical

ID: 350092

File Name: wordpress_CVE-2026-87902.nasl

Version: 1.2

Type: Remote

Family: CGI abuses

Published: 9/25/2026

Updated: 9/26/2026

Configuration: Enable paranoid mode

Supported Sensors: Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: Critical

Score: 9.2

Percentile: 99.77

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5.3

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

CVSS Score Source: CVE-2026-87902

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.5

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

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.2

Threat Score: 9.2

Threat Vector: CVSS:4.0/E:A

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

CPE: cpe:/a:wordpress:wordpress

Required KB Items: installed_sw/WordPress, www/PHP, Settings/ParanoidReport

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/22/2026

Vulnerability Publication Date: 9/22/2026

CISA Known Exploited Vulnerability Due Dates: 9/28/2026

Reference Information

CVE: CVE-2026-87902

IAVA: 2026-A-1055