WP Rocket Vulnerability CVE-2026-125812 Actively Exploited in Wild
The widely used WordPress plugin WP Rocket is under active attack via CVE-2026-125812, a critical remote code execution flaw. Exploits allow attackers to upload malicious PHP files by manipulating the plugin’s beacon feature. The vulnerability affects versions 3.15 through 3.24.1 and was patched in version 3.24.2 on November 19, 2026. Security researchers report seeing active exploitation attempts starting November 25, urging immediate updates.
Key points
- WP Rocket, a popular WordPress optimization plugin, contains a critical remote code execution vulnerability designated CVE-2026-125812.
- The flaw exists in versions 3.15 through 3.24.1 and allows attackers to upload arbitrary PHP files to the server.
- The vulnerability was patched in version 3.24.2, released on November 19, 2026, but attacks began as early as November 25.
- Exploitation involves manipulating the 'rocket_beacon' feature, which normally measures page performance, to trick the plugin into saving malicious scripts.
- Security researchers have identified active exploitation in the wild, with attackers installing backdoors and downloading additional payloads.
- Affected sites must update to version 3.24.2 or later and check for unauthorized PHP files in specific directories.
Critical Vulnerability in WP Rocket Under Active Attack
A significant security flaw in the widely installed WordPress plugin WP Rocket is currently being exploited by cybercriminals. The vulnerability, tracked as CVE-2026-125812, allows attackers to execute remote code on affected websites by uploading malicious PHP files. Security researchers have confirmed that active exploitation campaigns are underway, posing a serious risk to site owners who have not yet updated their software.
WP Rocket is a popular tool used by millions of WordPress users to improve site performance through caching and asset optimization. The specific flaw resides in the plugin's beacon feature, a small script that runs in visitors' browsers to measure page load times. This script reports data to the server endpoint /wp-admin/admin-ajax.php with the action parameter set to rocket_beacon. The plugin then uses this reported data to optimize the page, which includes downloading referenced URLs and saving them on the server.
Before version 3.24.2, the plugin failed to strictly validate the URLs reported by the beacon. This lack of validation allowed attackers to report URLs pointing to PHP files hosted on their own servers. When WP Rocket processed these reports, it would download and save the malicious PHP files directly onto the victim's website. This vulnerability affects WP Rocket versions 3.15 through 3.24.1, specifically when features such as LazyLoad for CSS background images or Self-host Google Fonts are enabled.
The vulnerability was officially patched in version 3.24.2, which was released on November 19, 2026. Despite the prompt release of the fix, security monitoring firm Patchstack reported observing the first exploitation attempts as early as November 25, 2026. This five-day window between the patch release and the first observed attacks highlights the urgency for site administrators to update their installations immediately.
Researchers analyzing the attacks have identified two primary methods used by attackers to reconnoiter vulnerable sites. The first method involves sending POST requests to check if the site's beacon is active. By analyzing these requests, attackers can determine if a site is running a vulnerable version of WP Rocket before launching a full exploitation attack. This reconnaissance step allows threat actors to target only those sites that are susceptible to the flaw.
Once a vulnerable site is identified, attackers exploit the beacon mechanism to upload a dropper script. This initial payload is designed to establish a foothold on the server. Researchers have observed that the attackers use the uploaded PHP file to download additional malicious components. These components often include backdoors that allow persistent access to the compromised site, even if the original vulnerability is patched.
The impact of these attacks extends beyond simple defacement. The installed backdoors enable attackers to execute arbitrary commands, steal data, and use the compromised server for further malicious activities, such as hosting phishing pages or launching distributed denial-of-service attacks. The lack of detailed public information on the exact structure of the attack requests and the specific backdoors installed makes it difficult for some administrators to detect if their sites have been compromised.
Security experts advise all WP Rocket users to update to version 3.24.2 or later immediately. In addition to updating, site administrators should check specific directories for unauthorized PHP files. The advisory provides guidance on which folders to inspect, but notes that the full extent of the damage may require a thorough forensic analysis. Given the active nature of the exploitation, delayed action could result in severe security breaches.
Key takeaways
- WP Rocket versions 3.15 through 3.24.1 are vulnerable to remote code execution via CVE-2026-125812.
- The flaw allows attackers to upload malicious PHP files by manipulating the plugin's beacon feature.
- The vulnerability was patched in version 3.24.2 on November 19, 2026, with attacks starting November 25.
- Active exploitation is confirmed, with attackers installing backdoors and downloading additional payloads.
- Site owners must update WP Rocket and check for unauthorized files in specific directories.
- The beacon feature, used for performance measurement, is the primary vector for the attack.
Sources
The WireByte editorial team synthesises technology news from multiple primary sources, verifies the facts, and links every source. Articles are produced with AI assistance and reviewed under our editorial policy.