CVE-2025-7667 Restrict File Access <= 1.1.2 - Cross-Site Request Forgery to Arbitrary File Deletion

High 8.1 Published Updated

Attackers can trick admins into deleting arbitrary files, potentially causing remote code execution, via CSRF in the Restrict File Access plugin.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-7667?

CVE-2025-7667 is a high-severity vulnerability in josxha Restrict File Access, published on 15 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The Restrict File Access plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.1.2. This is due to missing or incorrect nonce validation on the 'restrict-file-access' page. This makes it possible for unauthenticated attackers to to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php), via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

Weakness: CWE-352

Which versions are affected by CVE-2025-7667?

How do I fix CVE-2025-7667?

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

Is CVE-2025-7667 being exploited?

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

Sources

Also known as GHSA-xqcm-7p74-m69m.

Is CVE-2025-7667 in your software?

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

Check your SBOMs for free