---
id: "CVE-2026-124969"
page: "https://infrastack.ai/live/CVE-2026-124969"
kind: "vulnerability"
aliases: ["CVE-2026-124969"]
title: "Optimole WordPress plugin: unauthenticated arbitrary file deletion, possible code execution"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["optimole", "package", "php", "self-hosted", "wordpress"]
not_affected_if: ["archive-tar-absent", "newer-version", "plugin-not-installed"]
published_at: "2026-11-14T05:18:32+00:00"
first_seen_at: "2026-11-14T05:27:43+00:00"
updated_at: "2026-11-14T05:29:27+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-124969", "first_seen_at": "2026-11-14T05:27:43+00:00"}]
exploit_sources: []
---

# Optimole WordPress plugin: unauthenticated arbitrary file deletion, possible code execution

Link for people: https://infrastack.ai/live/CVE-2026-124969 (this .md is for agents)

The Optimole image optimization plugin for WordPress lets unauthenticated attackers delete arbitrary files on the server through insufficient file path validation in replace_urls_in_value, in all versions up to and including 4.2.19. Deleting a file such as wp-config.php can lead to remote code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed Optimole plugin version in the WordPress admin plugins list or the plugin's main file header; versions up to and including `4.2.19` are affected.
- Check whether PEAR's Archive_Tar library is present and loadable on the PHP host.

## Fix

- Optimole WordPress plugin: move to a version later than `4.2.19` (the fixed version is not stated in the sources).

## Timeline

- 2026-11-14T05:27:43+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-124969

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
