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

- Severity: High 7.1 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-11-14T04:46:10.600Z
- Modified: 2026-11-16T19:17:28.580Z
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Wordfence

## Description

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.

(As written by CVE List.)

## Affected

- optimole Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization: up to 4.2.19

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/277b9a34-8e0b-496e-b07b-602b25f125d8?source=cve>
- <https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_db_renamer.php#L415>
- <https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_db_renamer.php#L548>
- <https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_db_renamer.php#L319>
- <https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_rename.php#L107>
- <https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.19/inc/media_rename/attachment_edit.php#L311>
- <https://plugins.trac.wordpress.org/browser/optimole-wp/tags/4.2.20>

## Sources

- CVE List: [CVE-2026-124969](https://www.cve.org/CVERecord?id=CVE-2026-124969), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-124969](https://nvd.nist.gov/vuln/detail/CVE-2026-124969), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-124969 · Whole record: https://cve.day/CVE-2026-124969.json · Rebuilt by cve.day 2026-11-25T22:59:50.797Z
