What do hackers already know about your business? Get Your Free Report
WP Rocket Vulnerability CVE-2026-125812 Lets Attackers Plant PHP Files
6 Mins Read
Summarize with:

WP Rocket Vulnerability CVE-2026-125812 Lets Attackers Plant PHP Files

Attackers are targeting CVE-2026-125812, a critical WP Rocket vulnerability that lets unauthenticated visitors write a PHP file to a WordPress site and then run it. The first exploitation attempt was recorded on November 25, 2026, six days after WP Rocket shipped the fix, and activity climbed to tens of thousands of blocked attempts the next day.

WP Rocket is a premium plugin that its developer, WP Media, says runs on more than 5.5 million websites. Only sites with one of two optional performance features enabled are exposed, but both features are common on performance-tuned sites.

What Is CVE-2026-125812?

CVE-2026-125812 is a critical vulnerability in WP Rocket, WP Media’s premium caching and performance plugin for WordPress. It affects every version before 3.24.2, and successful exploitation gives the attacker code execution on the web server. WP Media fixed it in version 3.24.2, released on November 19, 2026.

The CVE record classifies the underlying weakness as path traversal (CWE-22) and scores it 9.8 under CVSS 3.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). The traversal is the root flaw; in practice, it leads to arbitrary PHP execution. No login, user interaction or special network position is needed.

SOCRadar Vulnerability Intelligence card for CVE-2026-125812
SOCRadar Vulnerability Intelligence card for CVE-2026-125812

A researcher credited as Vorelito found the flaw and reported it through the Patchstack Bug Bounty Program on November 4, 2026. WP Media has not published a separate security advisory, and the 3.24.2 changelog describes the fix only as improved validation of cached CSS, font and preconnect files.

How Does CVE-2026-125812 Lead to Remote Code Execution?

Some WP Rocket optimizations rely on a small script that runs in each visitor’s browser, measures the page, and reports the results back to the site through a public AJAX endpoint (the rocket_beacon action on /wp-admin/admin-ajax.php). WP Rocket then uses those reported URLs when it builds optimized assets.

The plugin did not validate the reported URLs strictly enough. Patchstack’s analysis shows that a crafted report can make the site fetch content from a server the attacker controls and save it as a PHP file inside the web root. The attacker then requests that file, and the server executes it.

Which WP Rocket Versions and Settings Are Affected?

Every WP Rocket release before 3.24.2 contains the vulnerable code, but the attack path opens only when at least one of two settings is enabled. Both settings are off by default.

ConditionStatus
Vulnerable versionsAll versions before 3.24.2
Fixed version3.24.2 (November 19, 2026); 3.24.3 (November 26, 2026) is the latest release
Required settingLazyLoad for CSS background images, or Host Fonts Locally
AuthenticationNone
CVSS 3.19.8 (Critical)

A site with both features disabled is not exploitable through this path, but it still runs vulnerable code. Turning either feature on later reopens the exposure on an unpatched install.

When Did CVE-2026-125812 Exploitation Begin?

Attacks followed the patch within a week and public disclosure within two days:

Date (2026)Event
November 4Flaw reported through the Patchstack Bug Bounty Program
November 19WP Rocket 3.24.2 released with the fix
November 23Vulnerability publicly disclosed by Patchstack
November 25, 12:09 UTCCVE-2026-125812 published
November 25, 15:27 UTCFirst exploitation attempt recorded against the beacon endpoint
November 26Tens of thousands of attempts blocked in a single day as automated campaigns took over

The CVE record carries a CISA ADP assessment of “Exploitation: none.” That rating dates from publication, roughly three hours before the first attempt was seen, and is now out of date.

Early activity looked manual, and automated campaigns followed within a day. Some attackers first probe a site to confirm it is vulnerable before sending the real request. Wordfence, another WordPress security provider, reported blocking nearly 400 attacks targeting the flaw in the last 24-hour period.

Are WP Rocket Sites Being Compromised, and Is There a Public PoC?

Both public figures count attempts blocked on protected sites. No one has published a count of WordPress sites actually compromised through CVE-2026-125812, and attack volume alone does not show how many attempts succeeded on unprotected installs.

A proof-of-concept (PoC) exploit for CVE-2026-125812 is publicly available on GitHub.

The flaw is not a zero-day: the fix was available six days before the first observed attempt. The risk falls on sites that delay plugin updates.

What Are the IOCs for WP Rocket Exploitation?

The following indicators come from Patchstack’s analysis of the campaign. Treat them as starting points for hunting, not a complete list.

  • Planted PHP files: Unexpected files matching wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/
  • Suspicious beacon traffic: POST requests with action=rocket_beacon from clients that never loaded the page they report on, or reports carrying full URLs where bare domains are expected
  • Unusual outbound fetches: The web server connecting to bare IP addresses, wildcard DNS names under nip[.]io, temporary trycloudflare[.]com tunnels, or unrelated WordPress sites that may themselves be compromised

Patchstack listed these as the ten most active source IP addresses since November 25:

  • 103.235.74[.]71
  • 201.79.120[.]217
  • 157.245.122[.]230
  • 112.78.154[.]32
  • 152.89.170[.]194
  • 167.71.75[.]155
  • 180.232.236[.]101
  • 43.163.8[.]253
  • 103.235.74[.]72
  • 51.79.199[.]209

Mass-exploitation infrastructure rotates quickly, so blocking these addresses will not stop new attempts. They are most useful for searching historical web and WAF logs.

How to Patch WP Rocket and Check for Compromise

Updating to 3.24.2 or later closes the hole, but it does not delete a PHP file an attacker has already planted. Any site that ran a vulnerable version with either feature enabled after November 25 should be treated as possibly compromised until checked.

  • Update WP Rocket to 3.24.2 or later on every site, including staging copies and microsites that are easy to forget
  • If an immediate update is not possible, disable both LazyLoad for CSS background images and Host Fonts Locally until it is
  • Search the directories listed above for unexpected PHP files and compare them against a known-good backup
  • Review web server and WAF logs from November 25 onward for rocket_beacon requests and outbound connections that match the patterns above
  • If a planted file is found, handle the site as a full compromise: rotate WordPress admin, database and hosting credentials, check for new admin accounts, and look for additional backdoors before restoring service

Agencies and hosting providers that manage many client sites should not rely on auto-updates alone. Because WP Rocket is a premium plugin, an expired license or a manual-update policy can leave sites stuck on older releases.

Find Exposed WordPress Sites With SOCRadar

Large organizations rarely run just one WordPress site. Campaign pages, regional microsites and agency-built properties often run premium plugins that no one on the security team tracks. SOCRadar helps close that gap:

  • Autonomous Exposure Management: Discovers internet-facing WordPress sites across your domains, including forgotten microsites, so teams know where WP Rocket may be running
  • Vulnerability Intelligence: Tracks exploitation activity, public exploit code and vendor updates for CVE-2026-125812, so patch priority reflects the current threat
  • Cyber Threat Intelligence: Enriches the source IPs and payload-hosting infrastructure tied to this campaign, helping analysts triage matches in their logs
Digital Footprint, SOCRadar Exposure Management
Digital Footprint, SOCRadar Exposure Management

As the WP Rocket campaign shifts to new infrastructure, SOCRadar keeps exposure and exploitation data side by side so teams can patch and hunt in the right order.

Cyber Threat Intelligence
Yağmur Ernalbant

Yağmur is a Senior Content Development Specialist at SOCRadar, covering both breaking cybersecurity news and the broader issues behind it. Through articles and regular Radar roundups, she tracks vulnerabilities, cybercrime, dark web activity, and other developments across the threat landscape.

Intelligence in your inbox every Thursday.

Join 30,000+ security professionals reading SOCRadar research.

Subscribe