CVE-2026-3835

Prevent Direct Access – Protect WordPress Files <= 2.8.8.8 - Unauthenticated Protected File Access

Published Aug 13, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
The Prevent Direct Access – Protect WordPress Files plugin for WordPress is vulnerable to unauthorized access of protected files due to insufficient token validation in the `get_advance_file_by_url()` method in all versions up to, and including, 2.8.8.8 The method uses a SQL `LIKE` operator for token lookup without escaping wildcard characters via `$wpdb->esc_like()`. This makes it possible for unauthenticated attackers to bypass the private token requirement by supplying SQL wildcard characters (such as `%`) as the token value, matching any record in the plugin's file table and downloading any protected file.

Analysis

AI-generated

Technical impact

The Prevent Direct Access – Protect WordPress Files plugin permits an attacker to retrieve any file that the plugin protects. The vulnerability is caused by the get_advance_file_by_url() method performing a SQL LIKE comparison against an unescaped token. An attacker can supply a wildcard character such as % as the token, which matches every record in the plugin’s file table and yields the content of arbitrary protected files. This flaw compromises the confidentiality of the protected data and could allow further exploitation, for example, by providing the attacker with application assets or private data.

Affected Systems

Any WordPress installation running the Prevent Direct Access – Protect WordPress Files plugin version 2.8.8.8 or earlier requires attention. The plugin is distributed by buildwps. Sites that rely on this plugin to guard PHP, upload, or template files are at risk.

Risk and Exploitability

The CVSS score of 5.3 marks the issue as a moderate-security bug. EPSS is not available, so the current quantitative likelihood of exploitation cannot be derived, but the flaw requires only unauthenticated access and merely the ability to request a protected file URL with a wildcard token. The attack does not require elevated privileges and can be performed via the web browser or automated scripts. The plugin is not listed in the CISA KEV catalog, indicating no documented public exploitation as of the latest data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Prevent Direct Access plugin to the latest released version which addresses the token validation flaw
  • Configure the web server or use .htaccess to deny direct access to the plugin’s protected file directories and prevent arbitrary file retrieval
  • Restrict the file download functionality to users with appropriate permission roles via plugin settings or custom code

Generated by OpenCVE AI on August 13, 2026 at 06:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Buildwps
Buildwps prevent Direct Access – Protect Wordpress Files
Wordpress
Wordpress wordpress
Vendors & Products Buildwps
Buildwps prevent Direct Access – Protect Wordpress Files
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description The Prevent Direct Access – Protect WordPress Files plugin for WordPress is vulnerable to unauthorized access of protected files due to insufficient token validation in the `get_advance_file_by_url()` method in all versions up to, and including, 2.8.8.8 The method uses a SQL `LIKE` operator for token lookup without escaping wildcard characters via `$wpdb->esc_like()`. This makes it possible for unauthenticated attackers to bypass the private token requirement by supplying SQL wildcard characters (such as `%`) as the token value, matching any record in the plugin's file table and downloading any protected file.
Title Prevent Direct Access – Protect WordPress Files <= 2.8.8.8 - Unauthenticated Protected File Access
Weaknesses CWE-285
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Aug 13, 2026, 1:46 PM
Reserved
Mar 9, 2026, 2:22 PM
Status
Deferred
Published
Aug 13, 2026, 6:17 AM
Modified
Aug 14, 2026, 7:09 PM