CVE-2026-7515 BetterDocs Pro <= 3.8.0 - Unauthenticated Local File Inclusion via doc_style

Critical 9.8 Published Updated

Unauthenticated attackers can include and execute arbitrary PHP files via the doc_style parameter, leading to code execution or data disclosure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-7515?

CVE-2026-7515 is a critical path traversal vulnerability in BetterDocs Pro, published on 19 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-98

Which versions are affected by CVE-2026-7515?

How do I fix CVE-2026-7515?

No fix has been published for CVE-2026-7515 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-7515 being exploited?

There is no known exploitation of CVE-2026-7515 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-g4w7-q4vw-589x.

Is CVE-2026-7515 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free