Summary
CVE-2026-7515 is a critical Local File Inclusion (LFI) vulnerability in the BetterDocs Pro WordPress plugin, affecting all versions up to and including 3.8.0. The flaw allows unauthenticated remote attackers to include and execute arbitrary PHP files on the server via the doc_style parameter, with a CVSS v3.1 base score of 9.8 (Critical). In the worst-case scenario — where an attacker can also upload PHP files to the server — this vulnerability results in full unauthenticated Remote Code Execution (RCE).
Technical details
- Root cause: Improper control of a filename used in a PHP
include/requirestatement (CWE-98); thedoc_styleparameter is not properly sanitized or validated before being used to resolve a file path, allowing an attacker to supply an arbitrary path. - Trigger conditions: The vulnerability is exploitable with no authentication, no user interaction, and under low attack complexity. It requires only network access to a WordPress installation running BetterDocs Pro ≤ 3.8.0.
- Attack vector: Remote, unauthenticated HTTP request supplying a malicious value to the
doc_styleparameter, causing the server to include an attacker-controlled PHP file. - Impact: Successful exploitation enables execution of arbitrary PHP code in included files, bypassing access controls, exposing sensitive server-side data, and — where an attacker can upload PHP files (e.g., via a separate upload mechanism) — achieving full Remote Code Execution (RCE) on the underlying server. CVSS scores reflect confidentiality, integrity, and availability impact all rated High.
Affected software
- BetterDocs Pro (WordPress plugin by WPDeveloper) — all versions from the beginning up to and including 3.8.0
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector String:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate action: Update BetterDocs Pro to a version above 3.8.0. Consult the vendor’s official changelog at betterdocs.co/changelog to identify and apply the latest available patched release.
- If immediate patching is not possible: Consider temporarily restricting public access to WordPress documentation pages powered by BetterDocs Pro at the network or web server level, and audit server-writable directories to limit any existing file upload exposure that could be leveraged for RCE escalation.
- General hardening: Audit WordPress file permissions to prevent unauthorized PHP file uploads, and ensure server-side PHP execution is disabled in upload directories as a compensating control.
IONIX Status
The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

