Skip to main content

BetterDocs Pro CVE-2026-7515

| EUVDEUVD-2026-37992 CRITICAL
PHP Remote File Inclusion (CWE-98)
2026-06-19 Wordfence GHSA-g4w7-q4vw-589x
9.8
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify WordPress site running BetterDocs Pro ≤3.8.0
  2. Delivery
    Send unauthenticated request with crafted doc_style parameter
  3. Exploit
    Trigger PHP include of attacker-chosen path
  4. Execution
    Execute PHP from uploaded or existing file
  5. Persist
    Drop webshell / exfiltrate wp-config.php
  6. Impact
    Pivot to database and admin takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V5 - File Handling File inclusion prevention, allowlisting
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Command and Control

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The BetterDocs Pro plugin must be installed and active on the target WordPress site at version 3.8.0 or earlier, and the endpoint that consumes the doc_style parameter must be network-reachable (default for any public WordPress site). No authentication, user interaction, or non-default configuration is required (PR:N/UI:N/AC:L). Achieving full code execution (as opposed to information disclosure) additionally requires that an attacker can place or influence a .php file somewhere on the filesystem - e.g. via a separate file-upload weakness, a writable log, or a misconfigured uploads directory - which the description explicitly calls out as a limiting factor; pure information disclosure and access-control bypass via inclusion of existing bundled .php files do not require that secondary primitive.

Impact

All available signals point to genuinely high real-world risk rather than an inflated score. The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H is internally consistent with the description - the doc_style parameter is reachable over HTTP without authentication or user interaction, and successful inclusion of any attacker-controlled or attacker-influenced .php file yields full PHP execution under the web server account. EPSS, KEV listing and SSVC decision data were not supplied in the input, so probability of exploitation cannot be quantitatively confirmed; however WordPress LFI/LFI-to-RCE issues in popular commercial plugins are historically scanned for at scale by botnets within days of disclosure. No public exploit identified at time of analysis, and no active-exploitation evidence has been provided, so this should be treated as imminent-risk rather than confirmed in-the-wild.

Exploit ScenarioDerived

An unauthenticated attacker sends a single crafted GET or POST request to a BetterDocs Pro endpoint with a doc_style parameter pointing at a server-side .php file - for example a previously uploaded image-renamed-to-php, a log file controlled via another endpoint, or a sensitive bundled file - causing WordPress to include it and execute the PHP within. Chained with any writable upload primitive (media library, avatars, or a separate vulnerable plugin), this yields full webshell-grade RCE; even without an upload primitive the attacker can read sensitive configuration via PHP filter chains and pivot to credential theft.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

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.

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.

Affected VersionsENISA

BetterDocs Pro 0 ≤3.8.0

Affected Packages

euvd betterdocs_pro no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Betterdocs gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.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.

Executive ViewAI

Why It Matters

An unauthenticated remote code execution vulnerability in BetterDocs Pro for WordPress (versions through 3.8.0) allows attackers to execute arbitrary code on affected web servers and take complete control of WordPress installations. Organizations using this widely-deployed documentation plugin face immediate risk of website compromise, data theft, and operational disruption. With no patch currently available from the vendor and the vulnerability's network-accessible nature, this represents a critical organizational threat requiring emergency mitigation.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Completely disable and remove BetterDocs Pro plugin from production; (2) If operational continuity requires the plugin, implement Web Application Firewall rules to block requests containing 'doc_style' parameters with file path indicators; (3) Restrict WordPress admin access to allowlisted IP addresses; (4) Enable comprehensive logging of all plugin-related activity and configure SIEM alerts; (5) Maintain offline backup of uncompromised website baseline.

Threat Intelligence Overview

EPSS Score
0.9%
Top 45% exploitable
Social Media
2
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Local File Inclusion vulnerabilities occur when an application accepts user-controlled input to specify which file should be loaded or executed, typically through functions like PHP's `include()`, `require()`, or `fopen()`.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy