Back to CVE records
High 8.1Published May 7, 2026

CVE-2026-7252WP-Optimize <= 4.5.2 - Authenticated (Author+) Arbitrary File Deletion via 'original-file' Post Meta

Updated under an hour ago ()

Does this affect you?

It affects davidanderson WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

The WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the unscheduled_original_file_deletion function in all versions up to, and including, 4.5.2 This makes it possible for authenticated attackers, with author-level access and above, 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). This is possible because 'original-file' is a public (non-protected) meta key — it does not begin with an underscore — allowing Authors to freely create or modify it on their own attachment posts via the standard Edit Media form or the REST API.

CVSS
8.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Weakness (CWE)
CWE-22
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Wordfence
NVD analysis
Deferred
Record last updated
May 7, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
davidanderson WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
davidanderson:wp_optimize_cache_compress_images_minify_and_clean_database_to_boost_page_speed_and_performance (from the name)
through 4.5.2
CNA record

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.