Cybersecurity

WP Rocket Flaw Exploited to Plant PHP Backdoors: Update to 3.24.2

Attackers are abusing a critical WP Rocket bug to write and run PHP code on WordPress sites without logging in. Here is who is at risk and what to do today.

Read in 2 countries🇨🇳🇸🇬2 views
A web developer at a desk at dusk checks a website file list with one suspicious file flagged on a laptop.
AI-generated image (Claude)
In this article
  1. Key takeaways
  2. What happened
  3. Who is affected
  4. How the attacks look
  5. How to tell if your site was hit
  6. How to fix it
  7. Why this matters for small businesses
  8. What you should do
  9. Sources

If your business website runs on WordPress and uses the WP Rocket caching plugin, treat this as urgent. Attackers are actively exploiting a critical flaw in WP Rocket that lets them write PHP files onto a site and run them, with no username or password needed. This article is for website owners, web designers and the IT staff or agencies who look after WordPress sites.

Key takeaways

  • The flaw is tracked as CVE-2026-125812. Patchstack rates it 9.8 out of 10 (critical).
  • It affects WP Rocket versions before 3.24.2, but only on sites where LazyLoad for CSS background images or Host Fonts Locally is switched on.
  • The developer, WP Media, released the fix on 19 November. Attacks started on 25 November and became automated the next day.
  • Updating stops new attacks but does not remove files an attacker has already planted. You must check your site as well.
A technician in a server room aisle while a laptop on a cart shows blurred web request logs.
AI-generated image (Claude)

What happened

WP Rocket is one of the most widely used speed plugins for WordPress. WP Media says it runs on more than 5.6 million websites. To decide how to optimise a page, the plugin uses a small script in the visitor’s browser that measures the page and reports back to a public WordPress endpoint.

According to Patchstack, whose researchers have been tracking the attacks, WP Rocket trusted the web addresses in those reports without checking them strictly enough. By sending a specially crafted report, an attacker can make the site download content from a server the attacker controls and save it as a PHP file. Once that file sits on the server, the attacker can run it, which in practice means full control of the website.

Patchstack recorded the first exploitation attempt on 25 November 2026 at 15:27 UTC. The first attacker appeared to be testing by hand. Within a day, the activity had turned into automated campaigns, with tens of thousands of blocked attempts on 26 November alone. Techzine reports that Patchstack’s platform has now blocked more than 25,000 malicious requests.

Who is affected

Not every WP Rocket site is exposed. Your site is at risk only if all of the following are true:

  • WP Rocket is older than version 3.24.2.
  • At least one of these two options is turned on: LazyLoad for CSS background images or Host Fonts Locally.

Both options are off by default. However, Patchstack notes they are common on sites that have been tuned for speed, which describes many business, e-commerce and news sites. Many Nigerian SMEs have their sites built by freelancers or agencies and never look at the plugin settings again, so it is worth checking rather than assuming.

How the attacks look

Patchstack says every attempt it has seen is a POST request to /wp-admin/admin-ajax.php with action=rocket_beacon. The malicious files are hosted on bare IP addresses, on wildcard DNS names such as nip.io, on temporary trycloudflare.com tunnels and on WordPress sites that are likely already compromised. Some attackers first probe whether a site is vulnerable before sending a payload, and at least one group rotated through residential IP addresses.

How to tell if your site was hit

Patchstack lists several signs worth checking, especially if your site ran a vulnerable version with either option enabled after 25 November:

  • Unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/. Names such as wp-media-*.php are one example seen in attacks. The uploads folder normally holds images and documents, not PHP.
  • rocket_beacon requests in your access logs from visitors who never actually loaded the page they claim to be reporting on, or that contain full web addresses where only domain names would be expected.
  • Outbound connections from your web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels.

If you use shared hosting with cPanel, the File Manager and the Raw Access or Metrics logs are a good place to start. If you are not comfortable reading logs, ask your host or web developer to do it, and ask them to confirm in writing what they found.

How to fix it

  1. Update WP Rocket to 3.24.2 or later. In the WordPress dashboard, go to Plugins and update WP Rocket. If the update does not appear, check that your WP Rocket licence is active, because the plugin is commercial.
  2. If you cannot update right away, turn off both risky options. Techzine says they are under WP Rocket > Page Optimization > Image & Media, on the Media tab. Disable LazyLoad for CSS background images and Host Fonts Locally until you can update.
  3. Look for planted files in the folders listed above and remove anything you cannot explain. Keep a copy for your developer or security provider before deleting.
  4. Review your logs from 25 November onwards for rocket_beacon requests and odd outbound connections.
  5. If you find signs of compromise, assume the attacker had full access. Change WordPress administrator, hosting, database and FTP or SFTP passwords, check for new administrator accounts, and consider restoring from a clean backup taken before 25 November.

Agencies that manage many sites should note that, according to Techzine, WP Media has released a helper plugin to make the process easier for administrators with multiple installations.

Why this matters for small businesses

A hacked website is rarely just an embarrassment. Attackers who can run code on your server can plant fake payment pages, redirect your visitors to scams, send spam from your domain or steal customer data from forms and online shops. Search engines and browsers may also flag the site as dangerous, which hurts sales until it is cleaned. This bug is especially risky because the fix has been out for under two weeks, and many sites update plugins slowly or not at all.

What you should do

  • Today: confirm whether your site uses WP Rocket and which version it runs.
  • Update to 3.24.2 or later, or disable the two affected options until you can.
  • Check the wp-content folders for unexpected PHP files and review your logs since 25 November.
  • Turn on automatic updates for plugins where your setup allows it, and keep regular off-site backups of your site and database.
  • If you pay someone to maintain your website, send them this article and ask for confirmation that the update and checks are done.

Sources

Was this article helpful?

Embed this on your website

Run a website, school, church or company intranet? Paste this code to show this article as a card. It stays up to date automatically.

Or show your visitors the latest scam alerts, updated automatically:

Written by

Verified expert

Cybersecurity Analyst

Federal Capital Territory (Abuja)

  • Phising
  • Fraud Prevention
  • Cybersecurity Awareness and Training
  • Cloud Security
  • IT Risk Management

Credentials: MCPN, MNCS, IAENG | System Analyst · Web Developer · CEH · CC · CDST

Got expertise to share? Write for us →

Leave a Reply

Your email address will not be published. Required fields are marked *