Skip to content

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

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

CVE-2026-124969Published 14 Nov 2026, 04:46 UTC

Real-world risk

2.4/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from Wordfence)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image OptimizationNiche<= 4.2.19—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 44), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.700
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.4 × prerequisites 0.7 × threat 0.852.380
  4. Rounded to one decimal between 0.1 and 102.4

How the score works

Exploitation and evidence timeline

  1. 14 Nov 2026 Published
  2. 3 Dec 2026 Risk 2.4 (cvss fallback)

Weakness

CWE-502

References

Get alerts for Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization

Free email or text alerts when a vulnerability in Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization reaches risk 8 or higher. Nothing else.