Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Unauthenticated HTTP-reachable `doc_style` parameter directly drives a PHP include with no user interaction, yielding full code execution and therefore high C/I/A.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
2DescriptionCVE.org
The BetterDocs Pro plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 3.8.0 via the doc_style parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included.
Articles & Coverage 1
AnalysisAI
Unauthenticated remote code execution in BetterDocs Pro for WordPress (versions through 3.8.0) is achievable by abusing the doc_style parameter to include arbitrary local PHP files. Wordfence has assigned a critical 9.8 CVSS score, and while no public exploit identified at time of analysis, the unauthenticated network-reachable nature of the flaw on a widely deployed WordPress documentation plugin makes opportunistic mass-exploitation likely once details propagate.
Technical ContextAI
BetterDocs Pro is a commercial WordPress plugin for building product documentation/knowledge-base sites, published by WPDeveloper/Betterdocs (CPE cpe:2.3:a:betterdocs:betterdocs_pro). The bug is a classic CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program, often called PHP Remote File Inclusion / Local File Inclusion). The vulnerable code path passes the user-controlled doc_style query parameter into a PHP include/require (or wrapper such as locate_template) without normalising the path or constraining it to an allow-list of template names, so traversal sequences or absolute paths resolve to arbitrary .php files on disk and are executed in the WordPress request context.
RemediationAI
Upgrade BetterDocs Pro to the first version released after 3.8.0 as documented in the vendor changelog at https://betterdocs.co/changelog/ - the exact fixed version is not stated in the provided intelligence (Patch available per vendor advisory, version not independently confirmed), so confirm the patched build by cross-referencing the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/694b67d2-7d60-4764-a2c0-02698c331772 before deploying. Until the update is applied, deactivate the BetterDocs Pro plugin (the documentation portal will be offline while disabled), or place a WAF/virtual-patch rule that blocks or strictly allow-lists the doc_style request parameter to a known set of template tokens and rejects values containing /, \, .., null bytes, php:// or phar:// wrappers; note that overly strict filtering may break legitimate custom doc styles. As a defence-in-depth measure, harden PHP by setting open_basedir, restricting upload directories from executing PHP (e.g. php_flag engine off in wp-content/uploads), and reviewing access logs for requests containing doc_style= with suspicious payloads.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-98 – PHP Remote File Inclusion
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-37992
GHSA-g4w7-q4vw-589x