Lucene search
+L

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

🗓️ 25 Sep 2026 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 3 Views

Unauthenticated RCE in WordPress via get_page_template() path traversal.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2026-87902
25 Sep 202601:06
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
23 Sep 202602:44
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
25 Sep 202600:56
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
22 Sep 202618:13
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
22 Sep 202618:40
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
23 Sep 202611:03
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
24 Sep 202614:02
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
23 Sep 202611:54
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
26 Sep 202606:30
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-87902
23 Sep 202622:17
–githubexploit
Rows per page
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(350092);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/09/26");

  script_cve_id("CVE-2026-87902");
  script_xref(name:"IAVA", value:"2026-A-1055");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2026/09/28");

  script_name(english:"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");

  script_set_attribute(attribute:"synopsis", value:
"A PHP application running on the remote web server is affected by a path traversal vulnerability.");
  script_set_attribute(attribute:"description", value:
"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.");
  # https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?aa8c545d");
  script_set_attribute(attribute:"see_also", value:"https://wordpress.org/news/2026/09/wordpress-7-1-2-release/");
  script_set_attribute(attribute:"solution", value:
"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.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss4_vector", value:"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");
  script_set_attribute(attribute:"cvss4_threat_vector", value:"CVSS:4.0/E:A");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2026-87902");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2026/09/22");
  script_set_attribute(attribute:"patch_publication_date", value:"2026/09/22");
  script_set_attribute(attribute:"plugin_publication_date", value:"2026/09/25");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:wordpress:wordpress");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_set_attribute(attribute:"enable_cgi_scanning", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2026 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("wordpress_detect.nasl");
  script_require_keys("www/PHP", "installed_sw/WordPress", "Settings/ParanoidReport");
  script_require_ports("Services/www", 80, 443);

  exit(0);
}

include('vdf.inc');

if (report_paranoia < 2) audit(AUDIT_PARANOID);

# @tvdl-content
var vuln_data = {
  "metadata": {
    "spec_version": "1.0"
  },
  "checks": [
    {
      "product": {
        "name": "WordPress",
        "type": "app"
      },
      "check_algorithm": "default",
      "constraints": [
        {"min_version": "4.7.0", "fixed_version": "4.7.37"},
        {"min_version": "4.8.0", "fixed_version": "4.8.32"},
        {"min_version": "4.9.0", "fixed_version": "4.9.33"},
        {"min_version": "5.0.0", "fixed_version": "5.0.29"},
        {"min_version": "5.1.0", "fixed_version": "5.1.26"},
        {"min_version": "5.2.0", "fixed_version": "5.2.28"},
        {"min_version": "5.3.0", "fixed_version": "5.3.25"},
        {"min_version": "5.4.0", "fixed_version": "5.4.23"},
        {"min_version": "5.5.0", "fixed_version": "5.5.22"},
        {"min_version": "5.6.0", "fixed_version": "5.6.21"},
        {"min_version": "5.7.0", "fixed_version": "5.7.19"},
        {"min_version": "5.8.0", "fixed_version": "5.8.17"},
        {"min_version": "5.9.0", "fixed_version": "5.9.18"},
        {"min_version": "6.0.0", "fixed_version": "6.0.16"},
        {"min_version": "6.1.0", "fixed_version": "6.1.14"},
        {"min_version": "6.2.0", "fixed_version": "6.2.13"},
        {"min_version": "6.3.0", "fixed_version": "6.3.12"},
        {"min_version": "6.4.0", "fixed_version": "6.4.12"},
        {"min_version": "6.5.0", "fixed_version": "6.5.12"},
        {"min_version": "6.6.0", "fixed_version": "6.6.9"},
        {"min_version": "6.7.0", "fixed_version": "6.7.9"},
        {"min_version": "6.8.0", "fixed_version": "6.8.10"},
        {"min_version": "6.9.0", "fixed_version": "6.9.9"},
        {"min_version": "7.0.0", "fixed_version": "7.0.6"},
        {"min_version": "7.1.0", "fixed_version": "7.1.2"}
      ]
    }
  ]
};

var vdf_result = vdf::check_and_report(vuln_data:vuln_data, severity:SECURITY_WARNING);
vdf::handle_check_and_report_errors(vdf_result:vdf_result);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

26 Sep 2026 00:00Current
7.7High risk
Vulners AI Score7.7
CVSS 3.18.1
EPSS0.18166
SSVC
3