All vulnerabilities

WordPress plugins

CVE-2026-124969

Optimole <= 4.2.19 - Unauthenticated PHP Object Injection to Arbitrary File Deletion via 'comment_content'/'comment_agent' Parameter during Attachment Rename

Severity
High 7.1
Published
14 Nov 2026
Last changed
16 Nov 2026
Added to UpHeron
14 Nov 2026
Exploit chance
0.5% in the next 30 daysHigher than 40% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Deserialization of untrusted data (CWE-502)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Change some data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
Optimole WP (WordPress plugin)WordPress plugins · wp-plugin:optimole-wp
  • Every version up to 4.2.19

About Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization

Automatically optimize images with bulk compression, lazy loading, WebP/AVIF conversion & CloudFront image CDN. Boost Core Web Vitals & conversions.

From its WordPress.org page.
Active installations
200,000+WordPress.org, 15 Nov 2026
Latest version
4.2.20WordPress.org, 15 Nov 2026
Last updated
12 Nov 2026WordPress.org
Rating
4.7 out of 5 (641 ratings)WordPress.org, 15 Nov 2026
Requires WordPress
5.5WordPress.org
Requires PHP
7.4WordPress.org
Tested up to WordPress
7.1.4WordPress.org
Author
OptimoleWordPress.org
In the directory since
23 Sept 2018WordPress.org

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-124969