Description
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.
Published: 2026-06-19
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The BetterDocs Pro plugin for WordPress contains a local file inclusion flaw in all released versions up to and including 3.8.0. A malicious actor can submit a URL‑encoded value for the 'doc_style' parameter that points to any file on the server and cause the plugin to include and execute that file. Because the failure to sanitize the file path occurs before authentication checks, an unauthenticated attacker can trigger the vulnerability and run arbitrary PHP code. This allows the attacker to bypass WordPress access controls, exfiltrate sensitive data, or fully compromise the hosting server. The flaw is rated CVSS 9.8, indicating critical severity.

Affected Systems

The vulnerability affects the BetterDocs Pro WordPress plugin, specifically all deployments using version 3.8.0 or earlier. No other WordPress core components or third‑party plugins are directly impacted by this flaw.

Risk and Exploitability

Exploitability is high due to the lack of required authentication; the LFI can be triggered simply by crafting a request to the 'doc_style' parameter. The EPSS score is not available, but the CVSS of 9.8 and absence from CISA KEV lists confirm that the flaw is a severe, potentially exploited vulnerability. An attacker would need write or read access to an arbitrary file on the web root; if PHP files can be uploaded elsewhere on the server, the attacker could first upload a payload and then trigger the LFI to execute it. The access control bypass could allow escalation to a privileged user or compromise of the entire host.

Generated by OpenCVE AI on June 19, 2026 at 07:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update BetterDocs Pro to the latest version (3.9.0 or later, if released) or apply the vendor‑issued patch that restricts the 'doc_style' parameter to a whitelist of allowed file names.
  • If an immediate update is not possible, remove the 'doc_style' parameter from the requests or disable the BetterDocs Pro plugin entirely until a fix is applied.
  • Configure a web application firewall or server rule to block external requests that contain the 'doc_style' parameter or attempt path traversal sequences such as '..' or null byte encodings.
  • Tighten file system permissions to ensure that only necessary files are readable by the web server process and that arbitrary PHP files are not executable in directories where the LFI can target.

Generated by OpenCVE AI on June 19, 2026 at 07:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 19 Jun 2026 08:15:00 +0000

Type Values Removed Values Added
First Time appeared Betterdocs
Betterdocs betterdocs Pro
Wordpress
Wordpress wordpress
Vendors & Products Betterdocs
Betterdocs betterdocs Pro
Wordpress
Wordpress wordpress

Fri, 19 Jun 2026 06:15:00 +0000

Type Values Removed Values Added
Description 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.
Title BetterDocs Pro <= 3.8.0 - Unauthenticated Local File Inclusion via doc_style
Weaknesses CWE-98
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Betterdocs Betterdocs Pro
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-06-19T05:33:29.949Z

Reserved: 2026-04-30T15:40:25.530Z

Link: CVE-2026-7515

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-19T08:00:09Z

Weaknesses
  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')