🔐 CVE Alert

CVE-2026-124969

HIGH 7.1

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

CVSS Score
7.1
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-502
Vendor optimole
Product optimole – optimize images | convert webp & avif | cdn & lazy load | image optimization
Published Nov 14, 2026
Stay Ahead of the Next One

Get instant alerts for optimole optimole – optimize images | convert webp & avif | cdn & lazy load | image optimization

Be the first to know when new high vulnerabilities affecting optimole optimole – optimize images | convert webp & avif | cdn & lazy load | image optimization are published — delivered to Slack, Telegram or Discord.

Get Free Alerts → Free · No credit card · 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

optimole / Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization
0 ≤ 4.2.19

References

NVD ↗ CVE.org ↗ EPSS Data ↗
wordfence.com: https://www.wordfence.com/threat-intel/vulnerabilities/id/277b9a34-8e0b-496e-b07b-602b25f125d8?source=cve plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_db_renamer.php#L415 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_db_renamer.php#L548 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_db_renamer.php#L319 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_rename.php#L107 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_edit.php#L311 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.20

Credits

daroo