CVE-2026-124969 — Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization
Summary
The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the replace_urls_in_value function in all versions up to, and including, 4.2.19. This makes it possible for unauthenticated attackers 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). Successful exploitation requires PEAR's Archive_Tar library to be present and loadable on the host (common in official WordPress Docker images and many PHP distributions), and an administrator must subsequently use the plugin's Rename control on any attachment after the attacker has staged a malicious payload in a comment. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
Severity breakdown
High · 7.1
An attacker without an account can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on availability, low on integrity, none on confidentiality
Weakness
- CWE-502: Deserialization of Untrusted Data
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization | ≤ 4.2.19 | — |
References by type
Other references
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_re…
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_re…
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_re…
- plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.20
- wordfence.com/threat-intel/vulnerabilities/id/277b9a34-8e0b-496e-b07b-6…
Affected
- Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-124969?
The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the replaceurlsinvalue function in all versions up to, and including, 4.2.19. Weakness type: Deserialization of Untrusted Data (CWE-502).
How severe is CVE-2026-124969?
CVE-2026-124969 has a CVSS 3.1 base score of 7.1 (high), from the CNA (wordfence.com). An attacker without an account can exploit this over the network if a user is tricked into an action.
Is CVE-2026-124969 being exploited?
Not as far as is known: CVE-2026-124969 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-124969?
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization ≤ 4.2.19.
How do I fix CVE-2026-124969?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.
Timeline & sources
References
Related vulnerabilities & news
- Forminator Forms Plugin Vulnerable to Stored XSS via File Upload Field
- CVE-2026-109586 — renehermi WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups
- MediaWiki ExternalData Extension Sensitive Information Exposure in 1.43, 1.45, 1.46, 1.47
- PHP-FPM epoll Use-After-Free Allows Local Privilege Escalation [CVE-2026-129291]
- WP STAGING Plugin Vulnerable to PHP Object Injection