WordPress Plugin Vulnerabilities

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

Description

The plugin is vulnerable to arbitrary file deletion due to insufficient file path validation in the replace_urls_in_value function. 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.

Affects Plugins

Fixed in 4.2.20

References

Classification

Type
OBJECT INJECTION
CWE
CVSS

Miscellaneous

Original Researcher
daroo
Verified
No

Timeline

Publicly Published
2026-11-13 (about 7 days ago)
Added
2026-11-13 (about 7 days ago)
Last Updated
2026-11-13 (about 7 days ago)

Other