CVE-2026-119071: W3 Total Cache <= 2.11.0 - Authenticated (Author+) File Deletion via 'w3tc_imageservice' Post Meta
The W3 Total Cache plugin for WordPress is vulnerable to unauthorized File Deletion in all versions up to, and including, 2.11.0 via the ajaxrevert() AJAX handler. The vulnerability exists because the removeoptimizations() function reads attacker-controlled values from the unprotected w3tcimageservice post meta key — which carries no underscore prefix and no registered authorization callback, making it writable by any user with editpost capability via WordPress's built-in custom-fields AJAX endpoint — and passes those values directly to wpdeleteattachment() with no check that the referenced ID is a child of the caller's own post, is an actual attachment, or that the caller holds deletepost capability on it. This makes it possible for authenticated attackers with Author-level access or above to permanently delete any WordPress attachment in the media library, including media files owned by other users along with their associated files on disk, regardless of ownership — a capability not available through the normal WordPress interface. The revert nonce is exposed via wplocalizescript on /wp-admin/upload.php to any user with uploadfiles capability, ensuring the nonce check that is present does not serve as a meaningful barrier to Author-level exploitation.
Affected Software
Event History
Frequently Asked Questions
Which users can exploit this issue?
Any authenticated WordPress user with Author-level access or higher can exploit it. The affected metadata can be written through WordPress's built-in custom-fields AJAX endpoint by users with the edit_post capability, and the revert nonce is available to users with upload_files capability.
What can an attacker delete?
An attacker can permanently delete arbitrary WordPress attachments from the media library, including attachments owned by other users. Associated media files on disk may also be deleted.
Does the attacker need permission to delete the targeted media item?
No. The vulnerable handler does not verify that the attachment belongs to the caller's post, that it is an attachment, or that the caller has delete_post permission for the referenced item.
How can I determine whether my installation is affected?
Installations running W3 Total Cache version 2.11.0 or earlier are affected according to the provided data. A practical exposure indicator is whether untrusted users have Author-level or higher WordPress access.