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

Published May 7, 2026
·
Updated

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

Affected Software

1 affected component
WP-Optimize WP-Optimize<=4.5.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance to a version that resolves this vulnerability.

    Fixed in 4.5.2
  2. Compensating control

    Restrict authenticated access to the WordPress media editing capabilities so that untrusted users (including Authors) cannot create or modify the 'original-file' post meta key via the standard Edit Media form or the REST API.

Event History

May 7, 2026
CVE Published
via MITRE·04:27 AM
Data Sourced
via MITRE·04:27 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 AM
DescriptionSeverityWeakness
Feb 22, 58334
Event
via FIRST·11:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-7252?

CVE-2026-7252 has been classified as a high severity vulnerability due to its potential to allow authenticated users to delete arbitrary files.

2

How do I fix CVE-2026-7252?

To fix CVE-2026-7252, update the WP-Optimize plugin to version 4.5.3 or later, where the vulnerability has been patched.

3

Who is affected by CVE-2026-7252?

CVE-2026-7252 affects installations of the WP-Optimize plugin version 4.5.2 or earlier on WordPress.

4

What is exploited in CVE-2026-7252?

CVE-2026-7252 is exploited through insufficient file path validation that allows authenticated users to delete files.

5

Can CVE-2026-7252 be prevented?

Preventing CVE-2026-7252 involves regularly updating the WP-Optimize plugin and monitoring user permissions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203