Skip to content

Optimole, a 200,000-install WordPress plugin, patches a file-deletion bug

CVE-2026-124969 lets an unauthenticated attacker delete arbitrary files, including wp-config.php, once an admin renames a staged attachment. Fixed in 4.2.20.

Source: Strix

Optimole, a WordPress image-optimisation plugin with over 200,000 active installs, patched a file-deletion flaw on 12 November, two days before the CVE was published. CVE-2026-124969, rated CVSS 7.1, sits in the plugin’s replace_urls_in_value function, which fails to validate file paths properly. It’s a deserialization bug (CWE-502): an attacker stages a malicious payload in a comment, and if PEAR’s Archive_Tar library is present on the server, an administrator triggering the plugin’s ordinary “rename” control on an attachment is enough to delete an arbitrary file.

The attacker needs no account of their own, but they do need that admin action to happen. Strix’s writeup doesn’t say whether that makes this easy to chain into a real attack or mostly theoretical, so the true risk sits somewhere between the two. Deleting the right file, wp-config.php is the one everyone names, can escalate straight to remote code execution.

Why it matters: every version up to 4.2.19 is affected, and the fix is already out in 4.2.20. If you run Optimole and haven’t updated since 12 November, do it now rather than waiting to see if anyone starts exploiting the admin-rename path in the wild.

Share

Related reading

More from The Wire

All briefs