Prevent files / folders access <= 2.5.1 - Authenticated (Administrator+) Arbitrary File Upload in mo_media_restrict_page

Unrestricted Upload of File with Dangerous Type
CVE CVE-2023-4238
CVSS 7.2 (High)
Publicly Published August 28, 2023
Last Updated September 8, 2023
Researcher Dmitrii Ignatyev - CleanTalk


The Prevent files / folders access plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the mo_media_restrict_page function in versions up to, and including, 2.5.1. This makes it possible for authenticated attackers, with administrator-level privileges and above, to upload arbitrary files on the affected site's server which may make remote code execution possible.



1 affected software package

Software Type Plugin
Software Slug prevent-file-access (view on
Patched? Yes
Remediation Update to version 2.5.2, or a newer patched version
Affected Version
  • <= 2.5.1
Patched Version
  • 2.5.2

All the threat data shared in this database is powered by Wordfence Intelligence Enterprise.
Interested in integrating this data into your platform or network?
Contact us now to discuss API access to our Wordfence Intelligence Enterprise Data Feeds.

Inquire Now

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.