Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108587 Overview
CVE-2026-108587 is an unauthenticated arbitrary file upload vulnerability in the 10Web Booster WordPress plugin (tenweb-speed-optimizer), affecting all versions up to and including 2.34.10. The flaw resides in the compressCustom function, which fails to validate file types and extensions on the page_id parameter. Attackers can chain this weakness with a world-readable leaked REST nonce (tenwebio_rest) to bypass authentication and upload executable files, enabling remote code execution. The nonce is generated in a cron/loopback context with user ID 0, making it valid for unauthenticated visitors. The issue is classified under [CWE-434: Unrestricted Upload of File with Dangerous Type].
Critical Impact
Unauthenticated attackers can achieve remote code execution on WordPress sites running vulnerable 10Web Booster installations, leading to full site takeover.
Affected Products
- 10Web Booster – Website speed optimization, Cache & Page Speed optimizer plugin for WordPress
- All versions up to and including 2.34.10
- WordPress sites with the plugin active and bulk optimization used
Discovery Timeline
- 2026-10-15 - CVE-2026-108587 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-108587
Vulnerability Analysis
The vulnerability chains two distinct flaws in the 10Web Booster plugin. First, the compressCustom function in the image optimizer REST handler accepts a page_id parameter and processes file content without validating file type or extension. Second, the plugin's queue restart logic serializes the REST nonce (tenwebio_rest) to a world-readable file under wp-content/uploads/ whenever a bulk optimization batch pauses.
Because the nonce is generated inside a cron or loopback request where the current user ID is 0, WordPress treats the nonce as valid for unauthenticated visitors. An attacker who reads the leaked nonce can satisfy the plugin's REST permission check and then invoke compressCustom to write attacker-controlled content, including PHP, into the uploads directory. See the Wordfence Vulnerability Report for the full chain analysis.
Root Cause
Two coding defects combine to create the vulnerability. Missing file type validation and extension filtering in compressCustom allow arbitrary file content and names to be written to disk. The queue restart routine (QueueRestart.php) persists authentication state (tenwebio_rest) to a predictable, world-readable path, exposing a privileged nonce to any visitor who can retrieve the file over HTTP.
Attack Vector
The attack is network-based, requires no authentication, and no user interaction. An attacker triggers (or waits for) a paused bulk optimization batch, retrieves the serialized nonce file from wp-content/uploads/, and sends a crafted REST request to the compressCustom endpoint with a malicious page_id payload. The resulting file write produces an executable PHP file, which the attacker invokes to achieve remote code execution. Technical references to the vulnerable code paths are available in the WordPress Plugin Change Set.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-108587
Indicators of Compromise
- Unexpected PHP, .phtml, or other executable files written under wp-content/uploads/ or plugin-controlled subdirectories.
- Serialized nonce files containing tenwebio_rest present in world-readable paths under wp-content/uploads/.
- REST requests to 10Web Booster endpoints (notably compressCustom) originating from unauthenticated sources with unusual page_id values.
- Web shell callbacks or outbound connections from the PHP-FPM/Apache worker process shortly after a POST to the plugin's REST API.
Detection Strategies
- Inspect webserver access logs for unauthenticated POST requests to /wp-json/ routes exposed by tenweb-speed-optimizer.
- Hunt for recently created files with executable extensions in uploads directories using file integrity monitoring.
- Correlate HTTP GET requests retrieving .txt, .json, or serialized files from wp-content/uploads/ with subsequent authenticated-looking REST calls from the same IP.
Monitoring Recommendations
- Enable continuous file integrity monitoring on wp-content/uploads/ and alert on new PHP files.
- Forward webserver and PHP error logs to a central analytics platform and alert on anomalous POST volume to the plugin's REST namespace.
- Monitor outbound network connections from webserver processes for signs of post-exploitation command-and-control activity.
How to Mitigate CVE-2026-108587
Immediate Actions Required
- Update the 10Web Booster plugin to a version later than 2.34.10 that includes the fix from WordPress Plugin Change Set 3743299.
- If immediate patching is not possible, deactivate and remove the plugin.
- Audit wp-content/uploads/ for any files containing serialized tenwebio_rest nonces and delete them.
- Scan the WordPress installation for unauthorized PHP files and web shells.
Patch Information
The vendor addressed the vulnerability in the update tracked by WordPress Plugin Change Set 3743299. Review the referenced vulnerable code paths in CompressService.php, Rest.php, Utils.php, and QueueRestart.php through the WordPress Plugin Code Snippet to confirm patch application.
Workarounds
- Block execution of PHP files within wp-content/uploads/ using webserver configuration (Apache or Nginx rules).
- Restrict access to the plugin's REST routes via a web application firewall until the plugin can be updated.
- Set restrictive filesystem permissions so that files written under wp-content/uploads/ are not world-readable, and purge any residual serialized nonce files.
# Nginx: deny PHP execution in uploads directory
location ~* /wp-content/uploads/.*\.php$ {
deny all;
return 403;
}
# Apache (.htaccess inside wp-content/uploads/)
<FilesMatch "\.(php|phtml|phar)$">
Require all denied
</FilesMatch>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

