CVE-2026-124969 · Package
NO FIX YET · SEE WHAT TO DO
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.
first public Nov 14, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Sites running the Optimole plugin at version 4.2.19 or earlier are exposed. Exploitation also requires PEAR's Archive_Tar library to be present and loadable on the host, which is common in official WordPress Docker images, and an administrator must use the plugin's Rename control on an attachment after an attacker stages a payload in a comment. Sites without the plugin, or running a later version, can skip it.
Not affected if archive-tar-absent, newer-version, plugin-not-installed
Who cares optimole, php, self-hosted, wordpress
4.2.19 are affected.4.2.19 (the fixed version is not stated in 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.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.